CalcIt Commands

TIME

Returns the current system time in various formats through a multi-field value.

  • H returns hour
  • M returns minutes
  • S returns seconds
  • DS return time at HH:MM:SS format for display purposes
  • E returns the elapsed time in milliseconds from the moment the computer was started

e.g. Use PrintArr command (which can handle multi-field values) to display at once all the above information:

PrintArr(Time)

Something, like below, will be printed:

*H:14
 M:50
 S:1
 DS:14:50:01
 E:18721265

To get one of the above fields use the usual (for the field values) dot syntax:

print( Time.h )

to print the hour part.

See also about multi-field values.

Go Back