add dive implementation pushed
Thiago Macieira
thiago at macieira.org
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?
QDateTime::currentDateTime()
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) macieira.info - thiago (AT) kde.org
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: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130920/6e257c34/attachment.sig>
More information about the subsurface
mailing list