Setlocaltime – AMT Datasouth PAL User Manual
Page 179

173
_setlocaltime
_setlocaltime
Description
Allows the user to set the printer’s internal real-time clock via PAL commands.
Usage
TimeArray
_setlocaltime
TimeArray
Array. Contains the new time information in a format compatible with the time
information returned by the _localtime operator.
[
AvailBool TotalInt YearInt MonthInt DayInt HourInt MinInt SecInt Sec100Int
DOYInt DOWInt ZoneNum SaveInt
]
AvailBool
Boolean.
true
if TimeArray actually contains values available for
recording into the printer’s real-time clock electronics.
false
if the
printer should not record the values in TimeArray to the clock
electronics.
TotalInt
Integer. Any non-negative value. The _setlocaltime operator only
requires a non-negative value for this value. The operator does not use
this value when setting the clock electronics. Required only for
compatibility with _localtime.
YearInt
Integer. 1970..2970. The _setlocaltime operator uses this value to set
the current year within the printer’s clock electronics.
MonthInt
Integer. 1..12. The _setlocaltime operator uses this value to set the
current month or the year within the printer’s clock electronics.
DayInt
Integer. 1..31. The _setlocaltime operator uses this value to set the
current day of the month within the printer’s clock electronics.
HourInt
Integer. 0..23. The _setlocaltime operator uses this value to set the
current hour of the day within the printer’s clock electronics.
MinInt
Integer. 0..59. The _setlocaltime operator uses this value to set the
current minute of the hour within the printer’s clock electronics.
SecInt
Integer. 0..59. The _setlocaltime operator uses this value to set the
current second of the minute within the printer’s clock electronics.
Sec100Int
Integer. 0..99. The _setlocaltime operator uses this value to set the
current hundredth of the second within the printer’s clock electronics.
Not all PAL printer models support time resolution to within 1/100 of a
second. The user should consult documentation specific to each printer
model to determine the various resolutions supported.
DOYInt
Integer. 1..366 or 0. Not used to set clock electronics. Required for
compatibility with _localtime.