[Qt-interest] New Date and Time Features in Qt5?
Frank Hemer
frank at hemer.org
Sat Jun 18 13:13:49 CEST 2011
On Tuesday 31 May 2011 12:56:42 Frank Hemer wrote:
> On Tuesday 31 May 2011 12:43:47 Atlant Schmidt wrote:
> > Thiago, et al.:
> > > Why do you need to know that?
> >
> > Perhaps only to report it to a human (who may care
> > about such things, even if they're only wondering
> > "Did my calendaring program properly account for
> > Summer Time/Daylight Savings Time?" or "When I set
> > the time and date in MyFancyApp(tm), did it account
> > for DST?"
> >
> > Humans, being mistrustful of software/computers
> > (and often, with pretty good reason) tend to be
> > reassured by such information.
>
> My vote for this!
>
> Btw., another use case is a documentation system where users need to
> document/record actions manually - and some of these actions happening
> around or within DST change need to be documented for the exact time of
> occurence. Now as this (human nature involved) sometimes happens some
> minutes/hours later, and the users have to manually enter the according
> timestamp, it is very important to know whether that timestamp is before or
> after the DST change.
Just to be a little more precise:
It would be very helpfull if QDateTime in Qt::timeSpec == Qt::LocalTime
supports:
1. A flag telling about whether dst is currently active
2. A flag telling about whether the QDateTime value is unique or ambivalent -
ambivalent meaning that a timeSwitch actually happens and the local time
needs clarification whether it is for example 2:30AM summertime or 2:30AM
wintertime.
Frank
More information about the Qt-interest-old
mailing list