Intermec PF4i Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 63

Selecting Format for Date and Time

Page 63 highlights

Chapter 5-Setting Up the Printer 5.3 Setting Time and Date The printer is, or can be, provided with an internal real-time clock/calendar (RTC) which retains its setting even when the printer is switched off. Note: If no RTC is installed, the internal clock will be used. After startup, an error will occur when trying to read the date or time before the internal clock has been manually set by means of either a DATE$ or a TIME$ variable. If only the date is set, the internal clock starts at 00:00:00 and if only the time is set, the internal clock starts at Jan 01 1980. After having set the internal clock, you can use the DATE$ and TIME$ variables the same way as when an RTC is fitted, until a power off or REBOOT causes the date and time values to be lost. The following instructions are used to set the clock/calendar: DATE$ = "" is the current date in the standard format: YY = Year, last two digits, MM = Month, two digits, DD = Day, two digits Input data must be enclosed by quotation marks. Example: DATE$ = "031201" ↵ 5.4 Selecting Format for Date and Time TIME$ = "" is the current time in the standard format: HH = Hour (00-24), MM = Minute (00-59), SS = Second (00-59) Input data must be enclosed by quotation marks. Example: TIME$ = "131548" ↵ The formats for printing dates and time in connection with DATE$("F"), DATEADD$("F"), TIME$("F"), and TIMEADD$("F"), see Chapter 3.9, can be specified by the instructions FORMAT DATE$ and FORMAT TIME$. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 55

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134

Intermec Direct Protocol v.8.60—Programmer’s Reference Manual
55
Chapter 5—Setting Up the Printer
5.3 Setting Time and Date
°e printer is, or can be, provided with an internal real-time clock/calen-
dar (RTC) which retains its setting even when the printer is switched off.
Note:
If no RTC is installed, the internal clock will be used.
After startup, an error will occur when trying to read the date
or time before the internal clock has been manually set by
means of either a
DATE$
or a
TIME$
variable. If only the date
is set, the internal clock starts at 00:00:00 and if only the time
is set, the internal clock starts at Jan 01 1980. After having set
the internal clock, you can use the
DATE$
and
TIME$
variables
the same way as when an RTC is fitted, until a power off or
REBOOT
causes the date and time values to be lost.
°e following instructions are used to set the clock/calendar:
DATE$ = "<YYMMDD>"
<YYMMDD>
is the current date in the standard format:
YY = Year, last two digits,
MM = Month, two digits,
DD = Day, two digits
Input data must be enclosed by quotation marks.
Example:
DATE$ = "031201"
5.4 Selecting Format for Date and Time
TIME$ = "<HHMMSS>"
<HHMMSS>
is the current time in the standard format:
HH = Hour (00-24),
MM = Minute (00-59),
SS = Second (00-59)
Input data must be enclosed by quotation marks.
Example:
TIME$ = "131548"
°e formats for printing dates and time in connection with
DATE$("F")
,
DATEADD$("F")
,
TIME$("F")
, and
TIMEADD$("F")
, see Chapter 3.9,
can be specified by the instructions
FORMAT DATE$
and
FORMAT TIME$
.