5#include <IceUtil/Time.h>
43 DateTime::operator IceUtil::Time()
const
static DateTime Now()
Current time on the virtual clock.
Represents a point in time.
std::int64_t toSecondsSinceEpoch() const
bool operator!=(const DateTime &rhs) const
static const Duration _invalidTimeSinceEpoch
bool operator<=(const DateTime &rhs) const
bool operator<(const DateTime &rhs) const
DateTime & operator+=(const Duration &rhs)
std::string toTimeString() const
bool operator>(const DateTime &rhs) const
std::string toDateTimeString() const
DateTime & operator-=(const Duration &rhs)
DateTime operator+(const Duration &rhs) const
std::string toString(const std::string &format) const
String representation of current date time according to given format string.
std::int64_t toMilliSecondsSinceEpoch() const
std::string toDateString() const
bool operator==(const DateTime &rhs) const
static DateTime Invalid()
std::string hostname() const
Duration toDurationSinceEpoch() const
DateTime operator-(const Duration &rhs) const
bool operator>=(const DateTime &rhs) const
ClockType clockType() const
std::int64_t toMicroSecondsSinceEpoch() const
static Duration MicroSeconds(std::int64_t microSeconds)
Constructs a duration in microseconds.
std::ostream & operator<<(std::ostream &out, const DateTime &rhs)
ClockType
Describes the type of clock.
@ Unknown
Unknown source of time.
void toIce(dto::ClockType::ClockTypeEnum &dto, const ClockType &bo)
void fromIce(const dto::ClockType::ClockTypeEnum &dto, ClockType &bo)