Search notes:

Stellarium API: setDate

core.setDate(
  date              ,  //  date
  spec              ,  // "utc" or "local"
  deltaTCorrection     //  A flag/boolean if Delta-T correction should be applied
)
date can be specified

Example

//  vim: ft=javascript
//
//  ..\runScript.bat setDate.ssc
//  


// Go to Irchelturm
core.setObserverLocation(
   8 + 36/60 + 25.85/60/60, // core.dmsToRad( 8, 36, 25.85 ), // longitude
  47 + 32/60 + 21.48/60/60, // core.dmsToRad(47, 32, 21.48 ), // latitude
   0                                                          // Altitude
);

// Note
//   for fully compatibles behavior of this function with the version 0.11.4 or earlier,
//   you should call
     core.setDeltaTAlgorithm("WithoutCorrection");
//   before running core.setDate(); for disabling DeltaT correction.

core.setDate(
  '2014-01-04T18:11:22',
  'local'              , // or 'utc'
   true                  // enable Delta T correction
);
Github repository about-Stellarium, path: /API/core/setDate.ssc

See also

core.getDate() returns the current simulation time in ISO 8601 format.
Stellarium Script API

Index