Skip To Content ArcGIS for Developers Sign In Dashboard

TimeExtent Class


Represents a span of time between a start time and end time. More...

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

Public Functions

TimeExtent(const QDateTime &timeInstant)
TimeExtent(const QDateTime &startTime, const QDateTime &endTime)
TimeExtent(const TimeExtent &other)
TimeExtent(TimeExtent &&other)
QDateTime endTime() const
bool isEmpty() const
QDateTime startTime() const
TimeExtent &operator=(const TimeExtent &other)
TimeExtent &operator=(TimeExtent &&other)

Detailed Description

Represents a span of time between a start time and end time.

A TimeExtent can also represent an instant in time, where the time instant is both the start and end time of the extent.

Dates and times must be passed in UTC.

TimeExtent is immutable. Instead of changing the properties of an existing TimeExtent, create a new TimeExtent instance.

Member Function Documentation


Default Constructor.

TimeExtent::TimeExtent(const QDateTime &timeInstant)

Constructs a TimeExtent with a timeInstant.

This will construct a time extent that represents a single point in time. In other words, its start and end times are equal are timeInstant.

TimeExtent::TimeExtent(const QDateTime &startTime, const QDateTime &endTime)

Constructs a TimeExtent with a startTime and an endTime.

TimeExtent::TimeExtent(const TimeExtent &other)

Copy constructor from other TimeExtent.

TimeExtent::TimeExtent(TimeExtent &&other)

Move constructor from other TimeExtent.



QDateTime TimeExtent::endTime() const

Returns the end time of this time extent.

bool TimeExtent::isEmpty() const

Returns whether the TimeExtent is empty.

Returns true if empty.

QDateTime TimeExtent::startTime() const

Returns the start time of this time extent.

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

Assignment operator from other TimeExtent.

TimeExtent &TimeExtent::operator=(TimeExtent &&other)

Move operator from other TimeExtent.

Feedback on this topic?