User Tools

Site Tools


CIGAL Reference Manual, Chapter 4 (Variables): hour

Hour -- Integer pseudo-variable containing current hour and minute

usage: dest = hour

HOUR is a number variable containing the hour and minute portions of the current time. This variable is read-only. The value is set at the moment it is read. HOUR is set as the hour (using a 24 hour clock) plus the current minute divided by 100.


      At 12:10 am,     HOUR =  0.10
      At  9:01 am,     HOUR =  9.01
      At 11:41 pm,     HOUR = 23.41
 At 5:25 pm on October 13th, 1992, the CIGAL command:
      ftype '%5/2f/%2d  %5:2f:%5.2f\n' day year-1900 hour secs
 would print as:
      10/13/92  17:25:00.00

See Also:
ALARM(2), CLOCK(4), DAY(4), FORMAT(3), SECS(4), TIME(3), YEAR(4)

CIGAL Home, CIGAL Manual, Variables List, Manual Help

jvs/cigal/manual/chapter4/hour.txt · Last modified: 2023/02/23 18:43 (external edit)