home *** CD-ROM | disk | FTP | other *** search
RISC OS BBC BASIC V Source | 2003-09-20 | 918 b | 37 lines |
- test calendar
- $ " at line "
- JulMon$(12)
- Jan, Feb, Mar, Apr
- May, Jun, Jul, Aug
- Sep, Oct, Nov, Dec
- I%=1
- JulMon$(I%):
- "Test3: For a given date, calculate the date that is N days away"
- )atod% =
- ident("Calendar_JDayToDate")
- )dtoa% =
- ident("Calendar_DateToJDay")
- "FROM:"
- "Calendar (0=stop, 1=julian, 2=gregorian, 3=hebrew, 4=islamic): "c%
- c%=0
- "Year : "y%
- "Month : "m%
- "Day : "d%
- dtoa%, c%,, y%,m%,d%
- ,from%
- "(JDay="from%")"
- "Offset : "f%
- jday%=from%+f%
- atod%, c%, jday%
- ,,r2%,r3%,r4%
- @%="G2"
- ""r2%"-"JulMon$(r3%)"-"r4%
- c%=0
- ident(swiname$)
- convert the given swi name to a swi number
- and print the result
- swinr%
- "OS_SWINumberFromString",, swiname$
- swinr%
- =swinr%
-