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.

Formatting Date <strong>and</strong> Time<br />

> <strong>Poco</strong>::DateTimeFormatter can be used to format <strong>date</strong>s <strong>and</strong> <strong>time</strong>s<br />

(Timestamp, DateTime, LocalDateTime <strong>and</strong> Timespan) <strong>as</strong> strings.<br />

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

> <strong>Poco</strong>::DateTimeFormatter uses a format string similar to<br />

strf<strong>time</strong>(). For details, ple<strong>as</strong>e see the reference documentation.<br />

> Pre-defined format strings for commonly used formats can be<br />

found in cl<strong>as</strong>s <strong>Poco</strong>::DateTimeFormat.

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

Saved successfully!

Ooh no, something went wrong!