×
Menu
Index

DOM, DOW, DOY

 
 
Purpose:
To find the current day of the month.
 
Format:
DOM
 
Example:
10
IF+ DOM = 1 THEN 100
 
20 END
 
 
30 REM NEW MONTH
 
 
 
 
 
DOW
 
 
 
Purpose:
To find the current day of week (Sun=0).
 
 
Format:
DOW
 
 
Example:
10 A = DOW
 
 
 
20
IF DOW = MON THEN START BLR2
 
 
 
DOY
Purpose:     To find the day of year as a number from JAN1 which evaluates to 1, on up to DEC31 which is 365.
 
Format:     DOY
 
Example:     10 IF DOY = JUL1 THEN GOSUB 100 20 END
 
30 REM HOLIDAY PROCEDURE
 
40 RETURN