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.

DateTimeParser Functions (cont'd)<br />

> void parse(const std::string& str, DateTime& <strong>date</strong>Time, int& tzd)<br />

parses a <strong>date</strong> <strong>and</strong> a <strong>time</strong> from the given string, recognizing all<br />

st<strong>and</strong>ard <strong>date</strong>/<strong>time</strong> formats defined by <strong>Poco</strong>::DateTimeFormat.<br />

Throws a <strong>Poco</strong>::SyntaxException if the format cannot be<br />

recognized, or the string does not match the expected format.<br />

> DateTime parse(const std::string& str, int& tzd)<br />

> bool tryParse(const std::string& str, DateTime& <strong>date</strong>Time, int&<br />

tzd)

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

Saved successfully!

Ooh no, something went wrong!