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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Timezone Functions<br />
> int utcOffset()<br />
returns the offset of local <strong>time</strong> to UTC, in seconds, <strong>and</strong> not<br />
including DST (local <strong>time</strong> = UTC + utcOffset())<br />
> int dst()<br />
returns the daylight saving <strong>time</strong> offset in seconds (usually 3600) if<br />
DST is in effect, or 0 otherwise.<br />
> bool isDst(const Timestamp& <strong>time</strong>stamp)<br />
returns true if DST is in effect for the given <strong>time</strong><br />
> int tzd()<br />
returns the <strong>time</strong> zone differential for the current <strong>time</strong> zone (tzd =<br />
utcOffset() + dst())