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

Format Time$ Hh.mm.ss P, Format Date$ Yyyy.mm.dd

Page 64 highlights

Chapter 5-Setting Up the Printer In both these instructions, you should enter a string of characters representing the various types of information. The order and number of the characters decides the format. You can also include separating characters like periods, slashes, colons, etc. Note that the input string must be enclosed by quotation marks. FORMAT DATE$ "" Y = Year, M = Month, D = Day (Default: YYMMDD) Examples: FORMAT DATE$ "YYYY.MM.DD" ↵ PT DATE$("F") : PF ↵ 2004.06.01 FORMAT DATE$ "DD/MM/YY" ↵ PT DATE$("F") : PF ↵ 01/06/04 yields for example yields for example FORMAT TIME$ "" H = Hour in 24-hour cycle (one digit per H; right-justified) h = Hour in 12-hour cycle (one digit per h; right-justified) M = Minute (one digit per M; right-justified) S = Second (one digit per S; right-justified) P = AM/PM (uppercase) in 12-hour cycle (one character per P; left-justified) p = am/pm (lowercase) in 12-hour cycle (one character per p; left-justified) Default: HHMMSS Examples: FORMAT TIME$ "HH:MM:SS" ↵ PT TIME$("F") : PF ↵ 14:15:37 FORMAT TIME$ "hh.MM.SS p" ↵ PT TIME$("F") : PF ↵ 02.15.37 p FORMAT TIME$ "hh.MM PP" ↵ PT TIME$("F") : PF ↵ 02.15 PM yields for example yields for example yields for example In many cases, it is desired to have the names of months and weekdays printed in plain text rather than as a number. There are two instructions that allow you to assign names in any language to months and weekdays: NAME DATE$,"" is 1-12. is the desired name enclosed with quotation marks. 56 Intermec Direct Protocol v.8.60-Programmer's Reference Manual

  • 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

56
Intermec Direct Protocol v.8.60—Programmer’s Reference Manual
Chapter 5—Setting Up the Printer
In both these instructions, you should enter a string of characters repre-
senting the various types of information. °e order and number of the
characters decides the format. You can also include separating characters
like periods, slashes, colons, etc. Note that the input string must be
enclosed by quotation marks.
FORMAT DATE$ "<string>"
Y = Year, M = Month, D = Day (Default: YYMMDD)
Examples:
FORMAT DATE$ "YYYY.MM.DD"
PT DATE$("F") : PF
yields for example
2004.06.01
FORMAT DATE$ "DD/MM/YY"
PT DATE$("F") : PF
yields for example
01/06/04
FORMAT TIME$ "<string>"
H = Hour in 24-hour cycle (one digit per H; right-justified)
h = Hour in 12-hour cycle (one digit per h; right-justified)
M = Minute (one digit per M; right-justified)
S = Second (one digit per S; right-justified)
P = AM/PM (uppercase) in 12-hour cycle (one character per P; left-justified)
p = am/pm (lowercase) in 12-hour cycle (one character per p; left-justified)
Default: HHMMSS
Examples:
FORMAT TIME$ "HH:MM:SS"
PT TIME$("F") : PF
yields for example
14:15:37
FORMAT TIME$ "hh.MM.SS p"
PT TIME$("F") : PF
yields for example
02.15.37 p
FORMAT TIME$ "hh.MM PP"
PT TIME$("F") : PF
yields for example
02.15 PM
In many cases, it is desired to have the names of months and weekdays
printed in plain text rather than as a number. °ere are two instructions
that allow you to assign names in any language to months and weekdays:
NAME DATE$<No. of month>,"<name of month>"
<No. of month>
is 1-12.
<name of month>
is the desired name enclosed with quotation marks.