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

List:       kde-core-devel
Subject:    Re: Alternative to QDateTime::isDateOnly ?
From:       "David Jarvie" <djarvie () kde ! org>
Date:       2015-04-29 12:12:09
Message-ID: c3b0d88c1caf9700d8b80aff792c8ada.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

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

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