#include <cel_time.h>
Public Member Functions | |
ssize_t | span () const |
bool | intersectsWith (const Time &t) const |
bool | intersectsWith (const TimeSpan &ts) const |
void | serialize (Stream *inStream, size_t inLevel, Endian inEndian) const |
void | deserialize (Stream *inStream, size_t inLevel, Endian inEndian) |
This struct stores a time span that consists from "from" and "to".
This method is just a helper function to deal with SerializableData template. For more information, see SerializableData.
|
inline |
This methods checks whether the specified time is in this TimeSpan or not.
t | A Time value. |
true
if the time is in this TimeSpan, otherwise false
.
|
inline |
This methods checks whether the specified TimeSpan has intersects with this TimeSpan or not.
ts | A TimeSpan value. |
true
if the TimeSpan is intersects with this TimeSpan, otherwise false
. This method is just a helper function to deal with SerializableData template. For more information, see SerializableData.
|
inline |
This method calculates the time long in seconds between "from" and "to".