$Horolog

$H[OROLOG] contains a string value specifying the number of days since "31 December, 1840," and the number of seconds since midnight of the current day, separated by a comma (,).

At midnight, the piece of the string following the comma resets to zero (0) and the piece preceding the comma increments by one (1). GT.M does not permit the SET command to modify $HOROLOG.

Example:

    GTM> WRITE $HOROLOG
    

Produces the result 58883,55555 at 3:25:55 pm on 20 March, 2002.

For further information on formatting $HOROLOG for external use, see the section on $ZDATE() in "Functions".