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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The DateTime Cl<strong>as</strong>s<br />

> <strong>Poco</strong>::DateTime is used for working <strong>with</strong> calendar <strong>date</strong>s <strong>and</strong><br />

<strong>time</strong>s, b<strong>as</strong>ed on the Gregorian calendar.<br />

> #include "<strong>Poco</strong>/DateTime.h"<br />

> It should be used for <strong>date</strong> calculations only. For storing <strong>date</strong>s <strong>and</strong><br />

<strong>time</strong>s, the Timestamp cl<strong>as</strong>s is more appropriate.<br />

> Internally, DateTime maintains the <strong>date</strong> <strong>and</strong> <strong>time</strong> in two formats:<br />

UTC <strong>and</strong> broken down (into year, month, day, hour, minute,<br />

second, millisecond, microsecond).<br />

> For internal conversions, DateTime also uses the Julian Day.

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

Saved successfully!

Ooh no, something went wrong!