home *** CD-ROM | disk | FTP | other *** search
- This extension library should be installed
- using the FNshell_InstallLib routine so
- that the variables and storage space can be
- set up.
-
- This library contains several routines
- related to the calendar. In all cases
- months are numbered from 1 to 12
- (1 = January, etc.) and years are the
- full A.D. year, (eg. 1993, etc.).
-
- --------------------------------------------------------
-
- PROCshell_CalenderSetMonthString()
- Params =>
- str a 36 character string of 3 letter
- month names, i.e. "JanFebMarApr
- MayJunJulAugSepOctNovDec"
-
- This call is provided so that you can set the
- language of the returned month strings from the
- other routines. For example a German version of
- your software would set the string to be "JanFeb
- MärAprMaiJunJulAugSepOktNovDez".
-
- Ideally the string would be read from a message
- file so that it can easily be translated together
- with the other messages.
-
- Installing the library with FNshell_InstallLib
- sets the string to English by default.
-
- An error will be generated if the specified
- string is not 36 characters long.
-
- --------------------------------------------------------
-
- PROCshell_CalendarSetDayString()
- Params =>
- str a 21 character string of 3 letter
- day names, i.e. "SunMonTueWedThuFriSat"
-
- This call is provided so that you can set the
- language of the returned day strings from the
- other routines. Ideally the string would be
- read from a message file so that it can easily
- be translated together with the other messages.
-
- The call to FNshell_InstallLib sets the
- string to English by default.
-
- An error will be generated if the specified
- string is not 21 characters long.
-
- --------------------------------------------------------
-
- PROCshell_CalenderGetTodaysDate()
- Params =>
- int day
- int month
- int year
-
- <=
- int day updated
- int month updated
- int year updated
-
- Updates the given variables with the
- current date, taken from TIME$ (will
- fail if format of TIME$ is not default
- English!)
-
- --------------------------------------------------------
-
- FNshell_CalenderDayOfWeek()
- Params =>
- int date
- int month nr
- int year
-
- <=
- int day nr (1 = Sun, 2 =
- Mon, etc.
-
- Returns the day of the week for a given
- date.
-
- --------------------------------------------------------
-
- FNshell_CalenderWeekDayString()
- Params =>
- int day nr (1-7)
-
- <=
- str three letter version of
- a day of the week (1 ->
- "Sun", 2 -> "Mon" etc.
-
- Returns "***" if day nr was out of range.
-
- --------------------------------------------------------
-
- FNshell_CalenderMonthString()
- Params =>
- int month nr (1-12)
-
- <=
- str three letter version of
- a month (1 -> "Jan",
- 2 -> "Feb", etc.)
-
- Returns "***" if month nr was out of range.
-
- --------------------------------------------------------
-
- FNshell_CalenderMonthNumber()
- Params =>
- str three letter version of
- a month. i.e. "Jan"
-
- <=
- int month nr (1-12)
-
- --------------------------------------------------------
-
- FNshell_CalenderDateString()
- Params =>
- int day
- int month nr
- int year
-
- <=
- str date, i.e "Fri 18th
- Oct 1991"
-
- --------------------------------------------------------
-
- FNshell_CalenderDateValid()
- Params =>
- int day
- int month
- int year
-
- <=
- bool TRUE date is valid
- FALSE date is not valid
-
- --------------------------------------------------------
-
- FNshell_CalenderDaysInMonth()
- Params =>
- int month nr (1-12)
- int year
-
- <=
- int nr of days in month
-
- Leap years are taken into account.
-
- --------------------------------------------------------
-
- FNshell_CalenderDaysInYear()
- Params =>
- int year
-
- <=
- int nr of days
-
- Leap years are taken into account.
-
- --------------------------------------------------------
-
- FNshell_CalenderLeapYear()
- Params =>
- int year
-
- <=
- bool TRUE year is a leap year
- FALSE year is not a leap year
-
- --------------------------------------------------------
-
- FNshell_CalenderDayOfYear()
- Params =>
- int day
- int month
- int year
-
- <=
- int day of year
-
- --------------------------------------------------------
-
- FNshell_CalenderDaysBetween()
- Params =>
- int day (1st date)
- int month (1st date)
- int year (1st date)
- int day (2nd date)
- int month (2nd date)
- int year (2nd date)
-
- <=
- int nr of days between dates
-
- --------------------------------------------------------
-
- FN_shell_CalLib_Init
- => None
-
- <= bool TRUE if module initialised correctly
- FALSE otherwise
-
- Normally called automatically when the library file
- is loaded by FNshell_InstallLib. If the library
- code is appended to the main program instead it will
- need to be called to initialise the calendar module.
-
- --------------------------------------------------------