KAlarm Library
datetime.cpp
344 return KGlobal::locale()->formatDateTime(d->mDateTime, (shortFormat ? KLocale::ShortDate : KLocale::LongDate));
DateTime toOffsetFromUtc() const
Returns the time expressed as an offset from UTC, using the UTC offset associated with this instance'...
Definition: datetime.cpp:241
int daysTo(const DateTime &dt) const
Returns the number of days from this date or date-time to dt.
Definition: datetime.cpp:306
KDateTime calendarKDateTime() const
Returns the date and time of the value as written in the calendar.
Definition: datetime.cpp:170
KDateTime::Comparison compare(const DateTime &other) const
Compare this value with another.
Definition: datetime.cpp:352
bool isLocalZone() const
Returns whether the time zone for the date/time is the current local system time zone.
Definition: datetime.cpp:201
DateTime toTimeSpec(const KDateTime::Spec &spec) const
Returns the time converted to a new time specification.
Definition: datetime.cpp:266
DateTime addMins(qint64 n) const
Returns a DateTime value mins minutes later than the value of this object.
Definition: datetime.cpp:286
DateTime addSecs(qint64 n) const
Returns a DateTime value secs seconds later than the value of this object.
Definition: datetime.cpp:281
void setTimeSpec(const KDateTime::Spec &spec)
Changes the time specification of the value.
Definition: datetime.cpp:191
DateTime addDays(int n) const
Returns a DateTime value n days later than the value of this object.
Definition: datetime.cpp:291
qint64 secsTo_long(const DateTime &dt) const
Returns the number of seconds as a qint64 from this date or date-time to dt.
Definition: datetime.cpp:321
bool isNull() const
Returns true if the date is null and, if it is a date-time value, the time is also null...
Definition: datetime.cpp:93
DateTime toClockTime() const
Returns the time converted to the local clock time.
Definition: datetime.cpp:256
int minsTo(const DateTime &dt) const
Returns the number of minutes from this date or date-time to dt.
Definition: datetime.cpp:311
DateTime addYears(int n) const
Returns a DateTime value n years later than the value of this object.
Definition: datetime.cpp:301
DateTime toLocalZone() const
Returns the time converted to the current local system time zone.
Definition: datetime.cpp:251
bool isClockTime() const
Returns whether the date/time is a local clock time.
Definition: datetime.cpp:206
int secsTo(const DateTime &dt) const
Returns the number of seconds from this date or date-time to dt.
Definition: datetime.cpp:316
int utcOffset() const
Returns the UTC offset associated with the date/time.
Definition: datetime.cpp:221
DateTime toZone(const KTimeZone &zone) const
Returns the time converted to a specified time zone.
Definition: datetime.cpp:261
QString toString(Qt::DateFormat f=Qt::TextDate) const
Returns the value as a string.
Definition: datetime.cpp:326
KDateTime::Spec timeSpec() const
Returns the time specification of the value.
Definition: datetime.cpp:186
QDateTime effectiveDateTime() const
Returns the date and time of the value.
Definition: datetime.cpp:143
KDateTime effectiveKDateTime() const
Returns the date and time of the value.
Definition: datetime.cpp:159
bool isValid() const
Returns true if the date is valid and, if it is a date-time value, the time is also valid...
Definition: datetime.cpp:98
void setSecondOccurrence(bool second)
Sets whether this is the second occurrence of this date/time.
Definition: datetime.cpp:231
QString formatLocale(bool shortFormat=true) const
Returns the value as a string, formatted according to the user's locale.
Definition: datetime.cpp:342
void setTime_t(uint secs)
Sets the value to a specified date-time value.
Definition: datetime.cpp:276
KDateTime kDateTime() const
Returns the date and time of the value as a KDateTime.
Definition: datetime.cpp:128
DateTime addMonths(int n) const
Returns a DateTime value n months later than the value of this object.
Definition: datetime.cpp:296
bool isOffsetFromUtc() const
Returns whether the date/time is a local time at a fixed offset from UTC.
Definition: datetime.cpp:216
uint toTime_t() const
Converts the time to a UTC time, measured in seconds since 00:00:00 UTC 1st January 1970 (as returned...
Definition: datetime.cpp:271
KDateTime::SpecType timeType() const
Returns the time specification type of the date/time, i.e.
Definition: datetime.cpp:196
void setDateOnly(bool d)
Sets the value to be either date-only or date-time.
Definition: datetime.cpp:108
As KDateTime, but with a configurable start-of-day time for date-only values.
Definition: datetime.h:42
void setDateTime(const QDateTime &dt)
Sets the date/time component of the value.
Definition: datetime.cpp:154
bool isSecondOccurrence() const
Returns whether the date/time is the second occurrence of this time.
Definition: datetime.cpp:226
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Jun 24 2014 14:23:24 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Jun 24 2014 14:23:24 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.