[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Alternative to QDateTime::isDateOnly ?
From:       "David Jarvie" <djarvie () kde ! org>
Date:       2015-04-29 12:10:39
Message-ID: 3461125997fa6a2fa2ac4e4c52f71fc7.squirrel () www6 ! sensical ! net
[Download RAW message or body]

On Tue, April 28, 2015 9:32 pm, Christian Mollekopf wrote:
> On Tue, Apr 28, 2015, at 08:47 PM, John Layt wrote:
>> On 27 April 2015 at 21:17, Christian Mollekopf <chrigi_1@fastmail.fm>
>> wrote:
>>
>

>> Using a QDate in the api is probably not an option for PIM though as
>> it doesn't have a QTimeZone attached which you will certainly always
>> need (and yes, that is a reason for doing it in QDateTime).
>>
>
> We don't need a timezone for date-only (AFAIR), but we do need date-time
> sometimes.

There *is* a valid reason for having a time zone for date-only values - it
is then possible to determine whether a date-time value falls within that
date-only value. For example, 2015-02-27T00:30 in an Australian time zone
is during 2015-02-26 for a European time zone; it is earlier than
2015-02-27 in a European time zone.

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

_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic