On Wednesday 06 July 2011 21:10:06 Thiago Macieira wrote:
> Em Wednesday, 6 de July de 2011, às 20:54:54, David Jarvie escreveu:
> > > Duration is simply the number of seconds or milliseconds between two
> > > dates,  appropriately given in their universal time. So duration is not
> > > affected by daylight savings.
> > 
> > Duration must record whether it was specified in terms of
> > hours/minutes/seconds, or days/weeks/whatever so that daylight savings
> > changes can be taken into account when calculating the end time of a
> > duration, given a start time.
> > 
> > If the duration class provides methods to calculate the end time, given a
> > start time, then it must take account of daylight savings changes.
> > 
> > See kdepimlibs/kcalcore/duration.h for example.
> 
> That's not what QTimeSpan is supposed to be. It's simply a quantity of 
> seconds.

Ok. Being more limited, it won't be a suitable replacement for 
KCalCore::Duration.

-- 
David Jarvie.
KDE developer.
KAlarm author -- http://www.astrojar.org.uk/kalarm

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to