ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TimeDelta Class / TimeDelta Constructor
Example

In This Topic
    TimeDelta Constructor
    In This Topic
    Initialize a new instance of a TimeDelta using a value and a time unit.
    Syntax
    Public Function New( _
       ByVal value As Double, _
       ByVal timeUnit As TimeUnit _
    )
    public TimeDelta( 
       double value,
       TimeUnit timeUnit
    )

    Parameters

    value
    timeUnit
    Example
    Step forward in time by 1 month
    {
      //Step current map time forward by 1 month
      TimeDelta timeDelta = new(1, TimeUnit.Months);
      mapView.Time = mapView.Time.Offset(timeDelta);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also