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.
#include "<strong>Poco</strong>/Timezone.h"<br />
#include "<strong>Poco</strong>/Timestamp.h"<br />
using <strong>Poco</strong>::Timezone;<br />
using <strong>Poco</strong>::Timestamp;<br />
int main(int argc, char** argv)<br />
{<br />
int utcOffset = Timezone::utcOffset();<br />
int dst = Timezone::dst();<br />
bool isDst = Timezone::isDst(Timestamp());<br />
int tzd = Timezone::tzd();<br />
std::string name = Timezone::name();<br />
std::string stdName = Timezone::st<strong>and</strong>ardName();<br />
std::string dstName = Timezone::dstName();<br />
}<br />
return 0;