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

Input Data from the Printer's Clock/Calendar, PRTXT, PRBOX, PRBAR, PT DATE, FORMAT, FORMAT TIME

Page 51 highlights

Chapter 3-Label Design Input Data from the Printer's Clock/Calendar The printer's clock/calendar can be used to provide input data to text and bar code fields by including any of the following instructions in the PRTXT, PRBOX, or PRBAR instructions: DATE$ Returns the current date according to the printer's calendar in the standard format YYMMDD, where YY is the last two digits of the year, MM is the number of the month (01-12), and DD is the number of the day (01-31). Example: PT DATE$ ↵ DATE$ ("F") Returns the current date according to the printer's calendar in the format specified by FORMAT DATE$, see Chapter 5.4. Example: PT DATE$("F") TIME$ Returns the current time according to the printer's clock in the standard time format HHMMSS, where HH is the hour (00-24), MM is the minute (00-59) and SS is the second (00-59). Example: PT TIME$ ↵ TIME$ ("F") Returns the current time according to the printer's clock in the format specified by FORMAT TIME$, see Chapter 5.4. Example: PT TIME$("F") ↵ WEEKDAY$ ("") Returns the name of the weekday in plain text according to NAME WEEKDAY$ (see Chapter 5.4) from a given date or the current date. can be specified in the standard format "YYMMDD" or by a DATE$ instruction. Examples: PT WEEKDAY$("031201") ↵ PT WEEKDAY$(DATE$) ↵ Intermec Direct Protocol v.8.60-Programmer's Reference Manual 43

  • 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
43
Chapter 3—Label Design
Input Data from the Printer’s Clock/Calendar
°e printer’s clock/calendar can be used to provide input data to text
and bar code fields by including any of the following instructions in the
PRTXT
,
PRBOX
, or
PRBAR
instructions:
DATE$
Returns the current date according to the printer’s calendar in the standard format YYMMDD, where YY
is the last two digits of the year, MM is the number of the month (01-12), and DD is the number of the
day (01-31).
Example:
PT DATE$
DATE$ ("F")
Returns the current date according to the printer’s calendar in the format specified by
FORMAT
DATE$
, see Chapter 5.4.
Example:
PT DATE$("F")
TIME$
Returns the current time according to the printer’s clock in the standard time format HHMMSS, where
HH is the hour (00-24), MM is the minute (00-59) and SS is the second (00-59).
Example:
PT TIME$
TIME$ ("F")
Returns the current time according to the printer’s clock in the format specified by
FORMAT TIME$
,
see Chapter 5.4.
Example:
PT TIME$("F")
WEEKDAY$ ("<date>")
Returns the name of the weekday in plain text according to
NAME WEEKDAY$
(see Chapter 5.4)
from a given date or the current date.
<date>
can be specified in the standard format “YYMMDD” or by a DATE$ instruc-
tion.
Examples:
PT WEEKDAY$("031201")
PT WEEKDAY$(DATE$)