Category : Modula II Source Code
Archive   : TASKING.ZIP
Filename : DATEUTIL.DEF

 
Output of file : DATEUTIL.DEF contained in archive : TASKING.ZIP
DEFINITION MODULE DateUtilities;

FROM TimeDate IMPORT Time;
EXPORT QUALIFIED DayOfWeek, DateDifference, SetDate;

PROCEDURE DayOfWeek(date: Time): CARDINAL;
(* returns 0 = Sunday, ... 6 = Saturday*)

PROCEDURE DateDifference(First, Last: Time): CARDINAL;
(* returns the numbers of days from first to last *)

PROCEDURE SetDate(Year, Month, Day: CARDINAL; VAR Date: Time)
(* set the date word if the timestamp *)
(* 1900 < Year < 2100, 1 <= Month <= 12, 1 <= Day <= 31 *)

END DateUtilities.


  3 Responses to “Category : Modula II Source Code
Archive   : TASKING.ZIP
Filename : DATEUTIL.DEF

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/