dateTime /Utilities

This object saves system date and time automatically as soon as it is instantiated (its default constructor calls the dateTime::update method).

dateTime properties won't be automatically updated. To reutilize an instance with most recent data, call the update method first, otherwise it will conserve the date, time and day of the moment it was instantiated.

Sample:

dateTime dt;
print("The time is " + dt.getHours() + ":" + dt.getMinutes());
print("The day is " + dt.getDay());

// some time later...

dt.update();
print("The time is " + dt.getHours() + ":" + dt.getMinutes());
print("The day is " + dt.getDay());
This object is based on the gregorian calendar