Index

Time

A time of day.

Input Format:

Sexagesimal hours.

Use with do-loops:
When a Time variable is used as the dependent variable of a do-loop, the associated loop increment is specified as a Interval constant.

Example 1:
The following three lines are equivalent. Each prints the value 23:30:27.000.
 print $Time(23.5075)

 print $Time(23:30.45)

 print $Time(23:30:27)
Example 3:
Display the current time of day and the local sidereal time.
 print $time(utc)
 print $time(lst)
Context when used as a time of day:
The time() function returns the time of day on a given timescale. Functions that take Time arguments include the after() and between() functions. These are used to schedule events to occur within given times of day.

Martin Shepherd (24-Oct-1999)