TimeExtent Class

  • TimeExtent
  • class Esri::ArcGISRuntime::TimeExtent

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

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

    Public Functions

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

    Detailed Description

    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.

    [explicit] 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 Esri::ArcGISRuntime::TimeExtent &other)

    Copy constructor from other TimeExtent.

    TimeExtent::TimeExtent(Esri::ArcGISRuntime::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.

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

    Assignment operator from other TimeExtent.

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

    Move operator from other TimeExtent.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.