! Date An Inform Library Extention, written for Inform 5.5
! With library release 5/12. (Time games only)
! (c) 1996 L. Ross Raszewski
! REQUIRES ordinal.h
! recognises 30 and 31 day months and Leap Years!
! Month Day and year are stored in global variables of the same names. Calling
! the AdvDate function (from the TimePasses routine) advances the date if required
! Add this line before inclusion:
! Global last_time;
! and then to the TimePasses Routine, somewhere add:
! AdvDate();
! last_time=the_time;
! the Function PrintDate(format)
! Prints the date, according to a given format:
! 1: Long Date, month day and year written out.
! 2: Month written out, day and year as numbers
! 3: Same as above, in Day-Month-Year format
! 4: Same as 2, month abbreviated
! 5: Same as 3, Month abbreviated
! 6: MM-DD-YY
! 7: MM/DD/YY
! 8: DD-MM-YY
! 9: DD/MM/YY
!If the Constant DATE_D is defined before inclusion, PrintDate defaults to
!that format. If it is not defined, it defaults to format 2.
!Date.h also includes 2 debugging verbs: 'Date' and 'SetD'. The usage
!"Date #" prints the current date in format #. SetD M #, SetD D #, and
!SetD Y # set the Month, Day, and year to the numbers given.
!
!The date is set by calling the function SetDate(m,d,y)