Intermec PX6i Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 52

Examples, Pt Weeknumber031201, Pt Weeknumberdate, Format Date, Format, Pt Timeadd$123026

Page 52 highlights

Chapter 3-Label Design WEEKNUMBER (""[,]) Returns the weeknumber from a given date or the current date. can be specified in the standard format"YYMMDD"or by a DATE$instruction. By default, the week number is calculated according to ISO 8601, but there are 14 other methods (see Intermec Fingerprint v.8.60, Programmer's Reference Manual). Examples: PT WEEKNUMBER("031201") ↵ PT WEEKNUMBER(DATE$) ↵ DATEADD$ (["",][,"F"|"M"]) Adds or subtracts a certain number of days to the current date or optionally to a specified date. "F" "M" is optional and is entered in the standard date format"YYMMDD."Note that the original date must be enclosed by quotation marks. specifies the number of days (or optionally months) to be added to or subtracted from the current date or, optionally, the date specified by . In case of subtraction, the should be preceded by a minus sign (-). is an optional flag specifying that the result should be returned in the format specified by FORMAT DATE$ instead of the standard format "YYMMDD." is an optional flag specifying that the value given in will mean months instead of days. Example: PT DATEADD$("010401",-15,"F") ↵ TIMEADD$ (["",] "F" is optional and is entered in the standard date format"HHMMSS."Note that the original time must be enclosed by quotation marks. specifies the number of seconds to be added to or subtracted from the current time or, optionally, the moment of time specified by . In case of subtraction, the

  • 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

44
Intermec Direct Protocol v.8.60—Programmer’s Reference Manual
Chapter 3—Label Design
WEEKNUMBER ("<date>"[,<calculating function>])
Returns the weeknumber from a given date or the current date.
<date>
can be specified in the standard format “YYMMDD” or by a
DATE$
instruc-
tion. By default, the week number is calculated according to ISO 8601, but
there are 14 other methods (see
Intermec Fingerprint v.8.60, Programmer’s
Reference Manual
).
Examples:
PT WEEKNUMBER("031201")
PT WEEKNUMBER(DATE$)
DATEADD$ (["<original date>",]<number of days>[,"F"|"M"])
Adds or subtracts a certain number of days to the current date or optionally to a specified date.
<original date>
is optional and is entered in the standard date format “YYMMDD.” Note that
the original date must be enclosed by quotation marks.
<number of days>
specifies the number of days (or optionally months) to be added to or sub-
tracted from the current date or, optionally, the date specified by <original
date>. In case of subtraction, the <number of days> should be preceded
by a minus sign (-).
"F"
is an optional flag specifying that the result should be returned in the
format specified by
FORMAT DATE$
instead of the standard format
“YYMMDD.”
"M"
is an optional flag specifying that the value given in <number of days> will
mean months instead of days.
Example:
PT DATEADD$("010401",-15,"F")
TIMEADD$ (["<original time>",]<number of sec’s>[,"F"])
Adds or subtracts a certain number of seconds to the current time or optionally to a specified moment
of time.
<original time>
is optional and is entered in the standard date format “HHMMSS.” Note that
the original time must be enclosed by quotation marks.
<number of sec’s>
specifies the number of seconds to be added to or subtracted from the current
time or, optionally, the moment of time specified by <original time>. In
case of subtraction, the <number of sec’s> should be preceded by a minus
sign (-).
"F"
is an optional flag specifying that the result should be returned in the
format specified by
FORMAT
TIME$
instead of the standard format
“HHMMSS.”
Example:
PT TIMEADD$("123026",100,"F")