add dive implementation pushed

Thiago Macieira thiago at
Fri Sep 20 09:05:43 UTC 2013

On sexta-feira, 20 de setembro de 2013 09:59:03, Dirk Hohndel wrote:
> Yes. But how can I get 'now' as a QDateTime that mixes nicely with these
> localtime values?


That's the current date and time. 

A QDateTime also stores a flag to say whether date() and time() return local 
time or universal time. From the discussion on IRC, it looks like you've found 
setTimeSpec(), which allows you to change the flag.

QDateTimeEdit also deals with the flag. Let me see the source code for that...

Thiago Macieira - thiago (AT) - thiago (AT)
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the subsurface mailing list