[Qt-interest] New Date and Time Features in Qt5?
Konrad Rosenbaum
konrad at silmor.de
Sat May 28 20:45:15 CEST 2011
On Saturday 28 May 2011, David Ching wrote:
> I would also request that Daylight Savings Time be able to be specified
> (or not), when converting between UTC and local time (and vice-versa).
What would be the use case for this? AFAIK there is no organisation that
ignores DST.
> Here in the US, it is very confusing when DST starts and stops, because
> they changed the law about that.
Politicians all over the world have the bad habit of doing this. This is
nothing special.
That's what some of the OS updates are for. Unless you forget to update your
system for many years you should be fine.
> Being able to manually ignore it or
> not (as well as the current behavior of applying it to a date based on
> when the date appears in the calendar, and the OS's understanding of
> whether DST is active on that date or not) would give us some welcome
> flexibility.
With a few exceptions most OS'es have a pretty good understanding of when
DST switches occur. At least for the US even Windows should be pretty good.
If you are on a Unix or Linux system you can switch to a simpler timezone by
setting the TZ variable to something like TZ=UTC-8, but then you lose
correct history of the local time zone in your calculations.
Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110528/590244d4/attachment.bin
More information about the Qt-interest-old
mailing list