KCal Library
period.cpp
Go to the documentation of this file.
bool isDaily() const
Returns whether the duration is specified in terms of days rather than seconds.
Definition duration.cpp:194
The period can be defined by either a start time and an end time or by a start time and a duration.
Definition period.h:48
bool operator==(const Period &other) const
Returns true if this period is equal to the other one.
Definition period.cpp:87
bool operator<(const Period &other) const
Returns true if the start of this period is earlier than the start of the other one.
Definition period.cpp:82
bool hasDuration() const
Returns true if this period has a set duration, false if it just has a start and an end.
Definition period.cpp:131
Period & operator=(const Period &other)
Sets this period equal to the other one.
Definition period.cpp:95
void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Shift the times of the period so that they appear at the same clock time as before but in a new time ...
Definition period.cpp:136
This file is part of the API for handling calendar data and defines the Period class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.