Programming instructions
99
Intermec Fingerprint 6.13 – Programmer's Guide
9. DATA HANDLING, cont'd.
3. Date and Time, cont'd.
The following instructions are used to read the clock/calendar:
<svar> = DATE$ Returns the current date in standard for-
mat to a string variable.
<svar> = DATE$("F") Returns the current date in the format
specified by FORMAT DATE$ to a string
variable.
<svar> = TIME$ Returns the current time in standard for-
mat to a string variable.
<svar> = TIME$("F") Returns the current time in the format
specified by FORMAT TIME$ to a string
variable.
DATEADD$ Adds or subtracts a number of days to/
from the current date or a specified date
and returns it in standard format, or the
format specified by FORMAT DATE$.
TIMEADD$ Adds or subtracts a number of seconds to/
from the current time or a specified mo-
ment of time and returns it in standard
format, or the format specified by FOR-
MAT TIME$.
DATEDIFF Calculates the difference in days between
two specified dates.
TIMEDIFF Calculates the difference in seconds be-
tween two specified moments of time.
WEEKDAY Returns the weekday of a specified date as
a numeric constant (1–7).
WEEKDAY$ Returns the name of the weekday of a
specified date in plain text according to
the weekday names specified by NAME
WEEKDAY$, or – if such a name is
missing – the full name in English.
WEEKNUMBER Returns the week number of a specified
date.
TICKS Returns the time passed since last startup
in
1
/100 seconds.
Note that in most instructions, you can specify the current date or
time by means of DATE$ or TIME$ respectively, e.g.:
WEEKDAY$ (DATE$)
TIMEDIFF (TIME$, "120000")
Continued!