Defines a time offset or interval for time related classes. More...
Header: | #include <TimeValue.h> |
Since: | Esri::ArcGISRuntime 100.3 |
Public Functions
TimeValue() | |
TimeValue(double duration, Esri::ArcGISRuntime::TimeUnit unit) | |
TimeValue(const Esri::ArcGISRuntime::TimeValue &other) | |
TimeValue(Esri::ArcGISRuntime::TimeValue &&other) | |
double | duration() const |
bool | isEmpty() const |
Esri::ArcGISRuntime::TimeUnit | unit() const |
Esri::ArcGISRuntime::TimeValue & | operator=(const Esri::ArcGISRuntime::TimeValue &other) |
Esri::ArcGISRuntime::TimeValue & | operator=(Esri::ArcGISRuntime::TimeValue &&other) |
Detailed Description
TimeValue is immutable. Instead of changing the properties of an existing TimeValue, create a new TimeValue instance.
Member Function Documentation
TimeValue::TimeValue ()
Default Constructor.
TimeValue::TimeValue (double duration, Esri::ArcGISRuntime::TimeUnit unit)
Constructs a TimeValue with a time duration and a unit of time.
TimeValue::TimeValue (const Esri::ArcGISRuntime::TimeValue &other)
Copy constructor from other TimeValue.
TimeValue::TimeValue (Esri::ArcGISRuntime::TimeValue &&other)
Move constructor from other TimeValue.
double TimeValue::duration() const
Returns the duration of the time value.
bool TimeValue::isEmpty () const
Returns whether the TimeValue is empty.
Esri::ArcGISRuntime::TimeUnit TimeValue::unit() const
Returns the unit of the time value.
Esri::ArcGISRuntime::TimeValue &TimeValue::operator=(const Esri::ArcGISRuntime::TimeValue &other)
Assignment operator from other TimeValue.
Esri::ArcGISRuntime::TimeValue &TimeValue::operator=(Esri::ArcGISRuntime::TimeValue &&other)
Move operator from other TimeValue.