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 150
9.2.45 MOD
Syntax [Operator]
E1 MOD E2
Purpose:
Compute the remainder of the division of E1 by E2
Example:
See also:
“Operators priority” on page 127
9.2.46 MONTH
Syntax [Function]
MONTH E1
• 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 month (1--12) that matches a defined time variable.
Warning: 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, “DOY” on page 135
9.2.47 NOT
Syntax [function]
NOT E1
Purpose:
The function returns '1' if E1 is equal to '0' otherwise the function returns 0.
Example:
See also:
“Operators priority” on page 127
9.2.48 NTPSync
Syntax [function]
NtpSync
Purpose:
Posts a request for clock re synchronization (even if this feature is disabled in the configuration).
1 MOD 2
REM returns 1
2 MOD 2
REM returns 0
a$ = TIME$
a% = MONTH a$
b% = getsys prg,"TIMESEC"
a% = MONTH b%
IF NOT a% THEN PRINT " A% is worth 0 "