# Interface RestApiMapServiceTimeInfo

Time Info returned from REST API MapServices.

interface RestApiMapServiceTimeInfo {
defaultTimeInterval: unknown;
defaultTimeIntervalUnits:
| "esriTimeUnitsCenturies"
| "esriTimeUnitsDays"
| "esriTimeUnitsDecades"
| "esriTimeUnitsHours"
| "esriTimeUnitsMilliseconds"
| "esriTimeUnitsMinutes"
| "esriTimeUnitsMonths"
| "esriTimeUnitsSeconds"
| "esriTimeUnitsUnknown"
| "esriTimeUnitsWeeks"
| "esriTimeUnitsYears";
defaultTimeWindow: unknown;
endTimeField: string;
hasLiveData: boolean;
liveModeOffsetDirection: "pastAndFuture" | "past" | "future";
startTimeField: string;
timeExtent: [number, number];
timeReference: {
respectsDaylightSaving: boolean;
timeZone: string;
};
timeRelation: "esriTimeRelationOverlaps" | "esriTimeRelationOverlapsStartWithinEnd" | "esriTimeRelationAfterStartOverlapsEnd>";
}

#### Hierarchy (view full)

- RestApiServiceTimeInfo
  - RestApiMapServiceTimeInfo

#####
Index

### Properties

defaultTimeInterval
defaultTimeIntervalUnits
defaultTimeWindow
endTimeField
hasLiveData
liveModeOffsetDirection
startTimeField
timeExtent
timeReference
timeRelation

##
Properties

### defaultTimeInterval

defaultTimeInterval: unknown

### defaultTimeIntervalUnits

defaultTimeIntervalUnits:
| "esriTimeUnitsCenturies"
| "esriTimeUnitsDays"
| "esriTimeUnitsDecades"
| "esriTimeUnitsHours"
| "esriTimeUnitsMilliseconds"
| "esriTimeUnitsMinutes"
| "esriTimeUnitsMonths"
| "esriTimeUnitsSeconds"
| "esriTimeUnitsUnknown"
| "esriTimeUnitsWeeks"
| "esriTimeUnitsYears"

### defaultTimeWindow

defaultTimeWindow: unknown

### endTimeField

endTimeField: string

New in 10.1. The name of the attribute used as end time.

Inherited from RestApiServiceTimeInfo.endTimeField

### hasLiveData

hasLiveData: boolean

### liveModeOffsetDirection

liveModeOffsetDirection: "pastAndFuture" | "past" | "future"

### startTimeField

startTimeField: string

New in 10.1. The name of the attribute used as start time.

Inherited from RestApiServiceTimeInfo.startTimeField

### timeExtent

timeExtent: [number, number]

Added at 10.0. The time extent of the service (start/end), represented using "Epoch time": milliseconds since 1970.

Overrides RestApiServiceTimeInfo.timeExtent

### timeReference

timeReference: {
respectsDaylightSaving: boolean;
timeZone: string;
}

Added at 10.0. The time reference of the service.

Overrides RestApiServiceTimeInfo.timeReference

### timeRelation

timeRelation: "esriTimeRelationOverlaps" | "esriTimeRelationOverlapsStartWithinEnd" | "esriTimeRelationAfterStartOverlapsEnd>"