Skip To Content ArcGIS for Developers Sign In Dashboard

TimeValue Class

(Esri::ArcGISRuntime::TimeValue)

Defines a time offset or interval for time related classes. More...

Header: #include <TimeValue>
Since: Esri::ArcGISRuntime 100.3

Public Functions

TimeValue()
TimeValue(double duration, TimeUnit unit)
TimeValue(const TimeValue &other)
TimeValue(TimeValue &&other)
double duration() const
bool isEmpty() const
TimeUnit unit() const
TimeValue &operator=(const TimeValue &other)
TimeValue &operator=(TimeValue &&other)

Detailed Description

Defines a time offset or interval for time related classes.

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, TimeUnit unit)

Constructs a TimeValue with a time duration and a unit of time.

TimeValue::TimeValue(const TimeValue &other)

Copy constructor from other TimeValue.

TimeValue::TimeValue(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.

TimeUnit TimeValue::unit() const

Returns the unit of the time value.

TimeValue &TimeValue::operator=(const TimeValue &other)

Assignment operator from other TimeValue.

TimeValue &TimeValue::operator=(TimeValue &&other)

Move operator from other TimeValue.


Feedback on this topic?