Go to the documentation of this file.
32 const std::string&
hostname =
"unknown");
34 DateTime(std::int64_t microSecondsSinceEpoch,
36 const std::string&
hostname =
"unknown");
59 std::string
toString(
const std::string& format)
const;
78 [[deprecated(
"Using IceUtil::Time in ArmarX is deprecated. Use armarx::DateTime instead.")]]
81 [[deprecated(
"Using IceUtil::Time in ArmarX is deprecated. Use armarx::DateTime instead.")]]
85 [[deprecated(
"The IceUtil::Time-style API is deprecated. Use DateTime::Now() instead.")]]
90 [[deprecated(
"The IceUtil::Time-style API is deprecated. Use DateTime(Duration::MicroSeconds(...)) instead.")]]
96 [[deprecated(
"The IceUtil::Time-style API is deprecated. Use toMicroSecondsSinceEpoch() instead.")]]
bool operator<(const DateTime &rhs) const
std::string toDateString() const
Duration toDurationSinceEpoch() const
ClockType clockType() const
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
std::int64_t toMicroSeconds() const
ClockType
Describes the type of clock.
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
@ Virtual
Time given by time server if configured, realtime otherwise.
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
static DateTime microSeconds(long microSeconds)
static Duration MicroSeconds(std::int64_t microSeconds)
Constructs a duration in microseconds.
static const Duration _invalidTimeSinceEpoch
static DateTime Invalid()
std::string toDateTimeString() const
This file offers overloads of toIce() and fromIce() functions for STL container types.
DateTime & operator+=(const Duration &rhs)