Replacement for KDateTime

Dāvis Mosāns davispuh at
Mon Aug 3 12:59:59 BST 2015

2015-08-02 21:32 GMT+03:00 David Jarvie <djarvie at>:
> Date-only KDateTime instances are not only used for Event start/end
> timestamps. In KAlarm they are also used among other things for alarm snooze
> times (independently of whether the event is date-only or not). So usage of
> the date-only attribute is *not* restricted to Events (even if that is all
> it is used for in kcalcore).

Sorry for injecting myself, but IMO there's no such thing as Date-only and
what you need is something like QDateTimeRange (just made up) where you would
have start QDateTime, end QDateTime and it could represent any Event/Interval.
Like whole day, part of day or even multiple days. And could also check whether
some QDateTime is inside this range.

More information about the kde-core-devel mailing list