;

TimeExtent Class

  • TimeExtent
  • class Esri::ArcGISRuntime::TimeExtent

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

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

    This class was introduced in Esri::ArcGISRuntime 100.3.

    Public Functions

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

    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

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

    Move constructor from other TimeExtent.

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

    Copy constructor from other TimeExtent.

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

    Constructs a TimeExtent with a startTime and an endTime.

    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()

    Default Constructor.

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

    Move operator from other TimeExtent.

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

    Assignment operator from other TimeExtent.

    TimeExtent::~TimeExtent()

    Destructor.

    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.

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