calendar object
The calendar object is used to calculate and manipulate dates and times.
calendar()
Parameters:
None.
Remarks:
When created, the calendar object is automatically set to the current system date and time.
This object uses operator overloading so that dates can be compared accurately. Below is a list of the operators that can be used.

- =
- <
- <=
- >
- >=
- ==
- !=

Example:

    // Do some comparisons with calendars.

    void main()
    {
    calendar now;
    calendar alarm;
    timer time;
    alarm.add_seconds(10);
    while(true)
    {
    wait(5);
    if(time.elapsed>=1000)
    {
    time.restart();
    now.reset();
    }
    if(now==alarm)
    {
    alert("Alarm", "This is an alarm!");
    exit();
    }
    }
    }