Manual

127
_localtime
_localtime
Description
Returns the current time of day and date if available.
Usage
_localtime TimeArray
TimeArray Array.
[AvailBool TotalInt YearInt MonthInt DayInt HourInt MinInt SecInt Sec100Int
DOYInt DOWInt ZoneFxp SaveInt]
AvailBool Boolean. true if printer knows the time. false if printer does not know
the time.
TotalInt Integer. Total number of seconds elapsed since 00:00:00 on January 1,
1970.
YearInt Integer. Current year. 1990, 1991, etc.
MonthInt Integer. Current month of the current year. 1 to 12.
DayInt Integer. Current day of the current month. 1 to 31.
HourInt Integer. Current hour of the current day. 0 to 23.
MinInt Integer. Current minute of the current hour. 0 to 59.
SecInt Integer. Current second of the current minute. 0 to 59.
Sec100Int Integer. Current 1/100 second of the current second. 0 to 99.
DOYInt Integer. Current day of the current year. 1 to 366.
DOWInt Integer. Current day of the current week. 1 to 7.
ZoneFxp Fixed-point. Local time zone if known by the printer. 0.0 to 23.0 or -
1.0. Provides the relationship between the local time and Greenwich
mean time (GMT). Subtracting ZoneInt from the local time provides
GMT. PAL will return -1.0 if the printer does not know the local time
zone.
SaveInt Integer. One if time based on daylight savings time. Zero if standard
time. -1 if printer does not know.
Comments
Nearly all PAL printers have the ability to maintain the current time and date so long as they
remain powered-on. Only some PAL printers have the ability to maintain the correct time and date










