[Interest] Getting the timezone from Qt?

Nikos Chantziaras realnc at gmail.com
Tue Jul 31 07:02:22 CEST 2012

On 31/07/12 06:43, Lorn Potter wrote:
> On 31/07/2012, at 1:28 PM, Nikos Chantziaras wrote:
>> I wonder if it's possible to deduce the timezone from the system's UTC
>> offset?  The offset can be determined through gmtime() and localtime(),
>> both in C89 so nothing platform-specific here:
> If it were that easy, we wouldn't need the extensive tz database. :)

Indeed.  That was quite a naive question, since several timezones most 
probably have the same offset, so you can't use the offset as an index 
into the tz database.

More information about the Interest mailing list