24 #ifndef PXR_USD_AR_TIMESTAMP_H
25 #define PXR_USD_AR_TIMESTAMP_H
47 : _time(std::numeric_limits<double>::quiet_NaN())
60 return !std::isnan(_time);
69 _IssueInvalidGetTimeError();
103 return !lhs.
IsValid() || (rhs.
IsValid() && lhs._time <= rhs._time);
108 return !(lhs <= rhs);
115 void _IssueInvalidGetTimeError()
const;
118 template <
class HashState>
ArTimestamp()
Create an invalid timestamp.
GT_API const UT_StringHolder time
friend bool operator!=(const ArTimestamp &lhs, const ArTimestamp &rhs)
friend bool operator>=(const ArTimestamp &lhs, const ArTimestamp &rhs)
friend bool operator>(const ArTimestamp &lhs, const ArTimestamp &rhs)
bool IsValid() const
Return true if this timestamp is valid, false otherwise.
friend void TfHashAppend(HashState &h, const ArTimestamp &t)
friend bool operator==(const ArTimestamp &lhs, const ArTimestamp &rhs)
friend bool operator<(const ArTimestamp &lhs, const ArTimestamp &rhs)
GLfloat GLfloat GLfloat GLfloat h
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
ArTimestamp(double time)
Create a timestamp at time, which must be a Unix time value.
friend bool operator<=(const ArTimestamp &lhs, const ArTimestamp &rhs)