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.

DateTimeFormatter Functions<br />

> All functions of DateTimeFormatter are static.<br />

> std::string format(const Timestamp& <strong>time</strong>stamp,<br />

const std::string& fmt, int tzd = UTC)<br />

formats the given Timestamp according to the given format<br />

string fmt. The <strong>time</strong> zone differential (tzd) is optional.<br />

> std::string format(const DateTime& <strong>date</strong>Time,<br />

const std::string& fmt, int tzd = UTC)<br />

is similar to the previous function, except that this one accepts a<br />

DateTime

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

Saved successfully!

Ooh no, something went wrong!