ArcGIS Runtime SDK for iOS: AGSTimeExtent Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSTimeExtent Class Reference

Description

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

To create a time extent which represents an instant in time, set the start time and end time to the same time value. The AGSTimeExtent is returned in the meta-data for time-aware services and layers. It is often used to create a time slider ranging from a start time to an end time.

See also
AGSLayerTimeInfo, AGSServiceTimeInfo, AGSGeoView::timeExtent
Since
100.2
Inheritance diagram for AGSTimeExtent:
AGSObject

Instance Methods

(instancetype) - initWithStartTime:endTime:
 
(instancetype) - initWithTimeInstant:
 
(BOOL) - isEqualToTimeExtent:
 

Class Methods

(instancetype) + timeExtentWithStartTime:endTime:
 
(instancetype) + timeExtentWithTimeInstant:
 

Properties

NSDate * endTime
 
NSDate * startTime
 

Method Documentation

◆ initWithStartTime:endTime:

- (instancetype) initWithStartTime: (nullable NSDate *)  startTime
endTime: (nullable NSDate *)  endTime 

Creates a time extent with the given start and end times.

Parameters
startTimeThe start time.
endTimeThe end time.
Since
100.2

◆ initWithTimeInstant:

- (instancetype) initWithTimeInstant: (NSDate *)  timeInstant

Creates a time extent with a time instant.

Parameters
timeInstantThe time instant is both the start and end time of the extent.
Since
100.2

◆ isEqualToTimeExtent:

- (BOOL) isEqualToTimeExtent: (AGSTimeExtent *)  other

Compares two time extents for equality

Parameters
othertime extent to compare this one to
Returns
whether the two time extents are equal
Since
100.10

◆ timeExtentWithStartTime:endTime:

+ (instancetype) timeExtentWithStartTime: (nullable NSDate *)  startTime
endTime: (nullable NSDate *)  endTime 

Creates a time extent with the given start and end times.

Parameters
startTimeThe start time.
endTimeThe end time.
Since
100.2

◆ timeExtentWithTimeInstant:

+ (instancetype) timeExtentWithTimeInstant: (NSDate *)  timeInstant

Creates a time extent with a time instant.

Parameters
timeInstantThe time instant is both the start and end time of the extent.
Since
100.2

Property Documentation

◆ endTime

- (NSDate*) endTime
readnonatomicstrong

The end time of this time extent.

Since
100.2

◆ startTime

- (NSDate*) startTime
readnonatomicstrong

The start time of this time extent.

Since
100.2