mtime 1.2.2
Loading...
Searching...
No Matches

Provides the calendar to the users, abstracting the different calendars available. More...

Functions/Subroutines

recursive subroutine, public calendartostring (string, errno)
 Initialize a new calendar.
 

Detailed Description

Provides the calendar to the users, abstracting the different calendars available.

Three calendar types are provided:

  • a proleptic Gregorian calendar
  • a calendar with 365 days per year without leap years
  • a calendar with 360 days per year and each month having 30 days

To use a specific calendar a call to setCalendar with the respective selector must be done. The implementation is based on a singleton concept meaning that only one calendar can be active at a time. To release a calendar a call to resetCalendar has to be done.