Go to the documentation of this file.
5 #include <IceUtil/Time.h>
25 _timeSinceEpoch{timeSinceEpoch}, _clockType{clock}, _hostname{hostname}
33 const std::string& hostname) :
bool operator<(const DateTime &rhs) const
std::string toDateString() const
void fromIce(const dto::ClockType::ClockTypeEnum &dto, ClockType &bo)
Duration toDurationSinceEpoch() const
ClockType clockType() const
void toIce(dto::ClockType::ClockTypeEnum &dto, const ClockType &bo)
bool operator==(const DateTime &rhs) const
std::int64_t toSecondsSinceEpoch() const
DateTime operator+(const Duration &rhs) const
std::ostream & operator<<(std::ostream &out, const DateTime &rhs)
DateTime & operator-=(const Duration &rhs)
bool operator>=(const DateTime &rhs) const
bool operator<=(const DateTime &rhs) const
ClockType
Describes the type of clock.
@ Unknown
Unknown source of time.
bool operator>(const DateTime &rhs) const
std::int64_t toMicroSecondsSinceEpoch() const
armarx::core::time::DateTime Time
std::int64_t toMilliSecondsSinceEpoch() const
DateTime operator-(const Duration &rhs) const
Represents a point in time.
std::string toString(const std::string &format) const
String representation of current date time according to given format string.
std::string hostname() const
std::string toTimeString() const
bool operator!=(const DateTime &rhs) const
std::string toDurationString() const
String representation of the current duration in minimal/default format.
static DateTime Now()
Current time on the virtual clock.
std::int64_t toMilliSeconds() const
Returns the amount of milliseconds.
std::int64_t toMicroSeconds() const
Returns the amount of microseconds.
static Duration MicroSeconds(std::int64_t microSeconds)
Constructs a duration in microseconds.
static const Duration _invalidTimeSinceEpoch
std::int64_t toSeconds() const
Returns the amount of seconds.
armarx::core::time::Duration Duration
static DateTime Invalid()
std::string toDateTimeString() const
DateTime & operator+=(const Duration &rhs)