Search notes:

Stellarium API: core.getDate

core.getDate(spec) returns the current simulation time in ISO 8601 format (for example 2020-09-24T09:00:23).
The optional parameter spec is either
Unfortunately, it is not possible to create a JavaScript Date object from the returned string. The following snippet:
dtStr = core.getDate();
core.debug('dtStr = ' + dtStr);
dt    = new Date(dtStr);
core.debug(dt.toString());
prints
dtStr = 2020-09-24T09:07:25
Invalid Date

See also

Stellarium Script API

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Wissensc...', 1758201390, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Wissenschaft/Astronomie/tools/Stellarium/script/API/core/getDate(52): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78