27.11.2014 Views

Working with date and time, time spans, time zones as well ... - Poco

Working with date and time, time spans, time zones as well ... - Poco

Working with date and time, time spans, time zones as well ... - Poco

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DateTime Static Functions<br />

> bool isLeapYear(int year)<br />

returns true if the given year is a leap year, false otherwise<br />

> int daysOfMonth(int year, int month)<br />

returns the number of days in the given month, for the given year<br />

> bool isValid(int year, int month, int day,<br />

int hour, int minute, int second, int millisecond, int microsecond)<br />

returns true if the given <strong>date</strong> <strong>and</strong> <strong>time</strong> is valid (all arguments are<br />

<strong>with</strong>in their proper ranges), false otherwise (takes into account<br />

leap years)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!