TIME

Syntax

TIME

Explanation

TIME outputs the current time as a list of three numbers in the form [hour minute second]. The hours are in 24-hour format. See also DATE.

Example

? TO SECONDS.SINCE.MIDNIGHT

>    LOCAL "T

>    MAKE "T TIME

>    OUTPUT ((FIRST :T) * 3600) + ((ITEM 2 :T) * 60) + LAST :T

> END

SECONDS.SINCE.MIDNIGHT defined.

? TIME

Result: [14 0 14]

? SECONDS.SINCE.MIDNIGHT

Result: 35986

?