[Interest] Getting the timezone from Qt?
Konrad Rosenbaum
konrad at silmor.de
Sun Jul 29 13:15:38 CEST 2012
On Saturday 28 July 2012, Nikos Chantziaras wrote:
> But thank you very much for the pointer anyway. At least I can look at
> that code to get an idea about how to get the needed info from the
> system :-)
src/tzsys*.cpp :-)
The unix variant should work on Mac as well and pretty much on any
Linux/Unix based system. It simply reads the "TZ" environment variable.
Windows stores the current time zone somewhere deep in the Registry. Those
tables that translate Windows time zone names into proper names are all over
the web.
Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120729/942c1afe/attachment.sig>
More information about the Interest
mailing list