Xsetrtc,isoweeknum,n - iso week, Xsetrtc,isoweeknum,n – GoDEX EZPL User Manual
Page 24

19
^XSETRTC,ISOWEEKNUM,n - ISO Week
Syntax
^XSETRTC,ISOWEEKNUM,n
Parameter
n = 0, disable the ISO Week (default)
n = 1, enable the ISO Week
Description
This command can set ISO week of the year to print.
Example
The following figure shows the ISO Week for 1 January 2000
It is week 52 of year 1999, day 6 of the week, and day 1 of year 2000.
Program: with the ISO Week Date function
Remark
~D1,1,0, 0,0,0
^XSETRTC,ISOWEEKNUM,1
^Q50,0,0
^L
Dy4-mn-dd
AC,58,32,1,1,0,0,Today is ^D
Dwy1
AC,58,132,1,1,0,0,Week of year in one digit:
^D
Dwy2
AC,58,194,1,1,0,0,Week of year in two digits:
^D
E
Set the date and time
Define the clock type
Print the date
Print the Week of year in one digit
(Week of year in one digit: 52)
Print the Week of year in two digits
(Week of year in two digits: 52)
Program: without the ISO Week Date function
Remark
~D1,1,0, 0,0,0
^XSETRTC,ISOWEEKNUM,0
^Q50,0,0
^L
Dy4-mn-dd
AC,58,32,1,1,0,0,NOT ISO week of year (^D)
Dwy1
AC,58,132,1,1,0,0,Week of year in one digit:
^D
Dwy2
AC,58,194,1,1,0,0,Week of year in two digits:
^D
E
Set the date and time
Define the clock type
Print the date
Print the Week of year in one digit
(Week of year in one digit: 1)
Print the Week of year in two digits
(Week of year in two digits: 01)