ArcObjects Library Reference (Carto)  

IMapTimeDescription Interface

Provides access to time properties of a MapDescription.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Read/write property TimeReference Time reference used by the time aware content.
Read/write property TimeValue Time value that will be used by the time aware content of the map.

CoClasses that implement IMapTimeDescription

CoClasses and Classes Description
MapDescription The Map Description coclass contains settings of a map in the current document.
[C#]

Example: setting time to a MapDescription

IMapTimeDescription pMapTimeDesc = pMapDesc as IMapTimeDescription;

ITime pTime = new TimeClass();
// date-time in YYYY/MM/DD hh:mm:ss format
pTime.SetFromTimeString(esriTimeStringFormat.esriTSFYearThruSecondWithSlash, "2000/01/01 08:00:00");

ITimeInstant pTimeInstant = new TimeInstantClass();
pTimeInstant.Time = pTime;
pTimeInstant.TimeReference = pMapTimeDesc.TimeReference;

pMapTimeDesc.TimeValue = pTimeInstant;