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.

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

> <strong>Poco</strong>::Timestamp is the main <strong>time</strong> keeping cl<strong>as</strong>s in <strong>Poco</strong>.<br />

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

> It stores a UTC-b<strong>as</strong>ed monotonic 64-bit <strong>time</strong> value <strong>with</strong> (up to)<br />

microsecond resolution. The actual resolution depends on the<br />

operating system.<br />

> Since <strong>Poco</strong>::Timestamp is UTC-b<strong>as</strong>ed, it is independent of the<br />

<strong>time</strong>zone (<strong>and</strong> changes to it).<br />

> <strong>Poco</strong>::Timestamp supports value semantics, comparison <strong>and</strong><br />

simple arithmetics.

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

Saved successfully!

Ooh no, something went wrong!