KDECore
kdatetime.h
Go to the documentation of this file.
KTimeZone timeZone() const
Returns the time zone for the date/time, according to the time specification type as follows:
Definition kdatetime.cpp:193
bool isLocalZone() const
Returns whether the time specification is the current local system time zone.
Definition kdatetime.cpp:216
bool isOffsetFromUtc() const
Returns whether the time specification is a local time at a fixed offset from UTC.
Definition kdatetime.cpp:218
void setType(SpecType type, int utcOffset=0)
Initialises the time specification.
Definition kdatetime.cpp:158
int utcOffset() const
Returns the UTC offset associated with the time specification.
Definition kdatetime.cpp:219
bool isClockTime() const
Returns whether the time specification is a local clock time.
Definition kdatetime.cpp:217
A class representing a date and time with an associated time zone.
Definition kdatetime.h:172
int utcOffset() const
Returns the UTC offset associated with the date/time.
Definition kdatetime.cpp:858
@ AtEnd
This KDateTime starts after the start of the other, and ends at the same time as the other,...
Definition kdatetime.h:491
@ EndsAt
This KDateTime starts before the start of the other, and ends at the same time as the other,...
Definition kdatetime.h:511
@ StartsAt
This KDateTime starts at the same time as the other, and ends after the end of the other,...
Definition kdatetime.h:506
@ AtStart
This KDateTime starts at the same time as the other, and ends before the end of the other,...
Definition kdatetime.h:483
@ Outside
This KDateTime starts before the start of the other, and ends after the end of the other,...
Definition kdatetime.h:501
@ Inside
This KDateTime starts after the start of the other, and ends before the end of the other,...
Definition kdatetime.h:487
@ ClockTime
a clock time which ignores time zones and simply uses whatever the local system clock says the time i...
Definition kdatetime.h:203
The KTimeZones class represents a time zone database which consists of a collection of individual tim...
Definition ktimezone.h:309
bool operator<(const KEntryKey &k1, const KEntryKey &k2)
Compares two KEntryKeys (needed for QMap).
Definition kconfigdata.h:124
QDataStream & operator>>(QDataStream &s, KDateTime::Spec &spec)
Read a KDateTime::Spec object into spec from in, in binary format.
Definition kdatetime.cpp:274
QDataStream & operator<<(QDataStream &out, const KDateTime::Spec &spec)
Write spec to the datastream out, in binary format.
Definition kdatetime.cpp:248
QDataStream & operator>>(QDataStream &in, KDateTime::Spec &spec)
Read a KDateTime::Spec object into spec from in, in binary format.
Definition kdatetime.cpp:274
Time zone functions.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.