User guide
eWON 500-2001-4001-4002 User Guide - Programming the eWON
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 135
9.2.18 DOW
Syntax [Function]
DOW E1 / S1
• E1 is a date in integer format (number of seconds since 1/1/1970)
• S1 is a date in String format ("18/09/2003 15:45:30")
Purpose:
This function returns an integer corresponding to the value of the day of the week (0--6; Sunday = 0) that matches a defined time variable.
REM: Do not call the function with a float variable of value (or this would result to error "invalid parameter").
Example 1:
Example 2:
See also:
“DAY” on page 134, “DOY” on page 135, “MONTH” on page 150
9.2.19 DOY
Syntax [Function]
DOY E1 / S1
• E1 is a date in integer format (number of seconds since 1/1/1970)
• S1 is a date in String format ("18/09/2003 15:45:30")
Purpose:
This function returns an integer corresponding to the value of the current day in the year (0-365) that matches a defined time variable.
REM: Do not call the function with a float variable of value (or this would result to error "invalid parameter").
Example 1:
Example 2:
See also:
“DAY” on page 134, “DOW” on page 135, “MONTH” on page 150
a$ = TIME$
a% = DOW a$
b% = getsys prg,"TIMESEC"
a% = DOW b%
a$ = TIME$
a% = DOY a$
b% = getsys prg,"TIMESEC"
a% = DOY b%