[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: QDateTime -> time_t ??
From:       Neil Stevens <neil () qualityassistant ! com>
Date:       2002-08-20 13:47:26
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday August 20, 2002 05:58, Nicolas Goutte wrote:
> As expected! Your experience is exactly what I meant when I have written
> that I had fallen into the trap.
>
> As I have written, QDateTime::setTime_t is local time (therefore UTC+2
> in summer), not UTC. However, the time that you have to check is UTC,
> isn't it?
>
> The 1 hour difference with setTime_t is because it is forgetting the
> summer time. I am going to bug TrollTech.

Bug them about more than that!  Tell them to read man 2 time, especially 
the part where time_t always measures from 00:00 Jan 1 1970 UTC, not 00:00 
Jan 1 1970 localtime.

Is time_t measuring from 00:00 Jan 1 1970 some Windows-ism that Qt is 
trying to be compatible with or something?

thanks,

- -- 
Neil Stevens - neil@qualityassistant.com
"I always cheer up immensely if an attack is particularly wounding
because I think, well, if they attack one personally, it means they
have not a single political argument left." - Margaret Thatcher
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9Ykhuf7mnligQOmERAuK7AJ9FRksMWS8YlI86KS7jZgiJ/fd9VwCdEmpI
H1BPB8+tDBHYVirdz+yI0NM=
=5kSC
-----END PGP SIGNATURE-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic