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