public enum TimeUnit : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum TimeUnit Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum TimeUnit : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum TimeUnit Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
Centuries | Represents a unit of time equal to 100 years. |
Days | Represents a unit of time equal to 24 hours. |
Decades | Represents a unit of time equal to 10 years. |
Hours | Represents a unit of time equal to 60 minutes or 3600 seconds. |
Milliseconds | Represents a unit of time equal to one thousandth of a second. |
Minutes | Represents a unit of time equal to 60 seconds. |
Months | Represents a unit of time that varies between 28 and 31 days. A year is divided into 12 months. |
Seconds | Represents the base unit of time in the International System of Units. |
Weeks | Represents a unit of time equal to 7 days. |
Years | Represents a unit of time equal to 365 days in a regular year and 366 days in a leap year. |
public void StepMapTime() { //Get the active view MapView mapView = MapView.Active; if (mapView == null) return; //Step current map time forward by 1 month TimeDelta timeDelta = new TimeDelta(1, TimeUnit.Months); mapView.Time = mapView.Time.Offset(timeDelta); }
System.Object
System.ValueType
System.Enum
ArcGIS.Desktop.Mapping.TimeUnit
Target Platforms: Windows 11, Windows 10, Windows 8.1