ITimeOffsetOperator Interface

Provides access to time operations.

Description

This interface provides a mechanism to offset various types of time objects (such as TimeInstant, TimeExtent, etc.) The various methods provided allow you to shift the time object by the specified interval into the future. To shift the time object into the past, simply pass in a negative value to the desired function.

Members

Name Description
Method AddDays Adds the input amount of days.
Method AddDuration Adds a time duration.
Method AddHours Adds the input amount of hours.
Method AddMilliseconds Adds the input amount of milliseconds.
Method AddMinutes Adds the input amount of minutes.
Method AddMonths Adds the input amount of months.
Method AddNanoseconds Adds the input amount of nanoseconds.
Method AddSeconds Adds the input amount of seconds.
Method AddWeeks Adds the input amount of weeks.
Method AddYears Adds the input amount of years.
Method SubtractDuration Subtracts a time duration.

ITimeOffsetOperator.AddDays Method

Adds the input amount of days.

Public Sub AddDays ( _
    ByVal Value As Double _
)
public void AddDays (
    double Value
);

ITimeOffsetOperator.AddDuration Method

Adds a time duration.

Public Sub AddDuration ( _
    ByVal TimeDuration As ITimeDuration _
)
public void AddDuration (
    ITimeDuration TimeDuration
);

ITimeOffsetOperator.AddHours Method

Adds the input amount of hours.

Public Sub AddHours ( _
    ByVal Value As Double _
)
public void AddHours (
    double Value
);

ITimeOffsetOperator.AddMilliseconds Method

Adds the input amount of milliseconds.

Public Sub AddMilliseconds ( _
    ByVal Value As Double _
)
public void AddMilliseconds (
    double Value
);

ITimeOffsetOperator.AddMinutes Method

Adds the input amount of minutes.

Public Sub AddMinutes ( _
    ByVal Value As Double _
)
public void AddMinutes (
    double Value
);

ITimeOffsetOperator.AddMonths Method

Adds the input amount of months.

Public Function AddMonths ( _
    ByVal Value As Double, _
    ByVal preserveEndOfMonth As Boolean, _
    ByVal goForwardOnInvalidDate As Boolean _
) As Boolean
public bool AddMonths (
    double Value,
    bool preserveEndOfMonth,
    bool goForwardOnInvalidDate
);

ITimeOffsetOperator.AddNanoseconds Method

Adds the input amount of nanoseconds.

Public Sub AddNanoseconds ( _
    ByVal Value As Long _
)
public void AddNanoseconds (
    long Value
);

ITimeOffsetOperator.AddSeconds Method

Adds the input amount of seconds.

Public Sub AddSeconds ( _
    ByVal Value As Double _
)
public void AddSeconds (
    double Value
);

ITimeOffsetOperator.AddWeeks Method

Adds the input amount of weeks.

Public Sub AddWeeks ( _
    ByVal Value As Double _
)
public void AddWeeks (
    double Value
);

ITimeOffsetOperator.AddYears Method

Adds the input amount of years.

Public Function AddYears ( _
    ByVal Value As Double, _
    ByVal preserveEndOfMonth As Boolean, _
    ByVal goForwardOnInvalidDate As Boolean _
) As Boolean
public bool AddYears (
    double Value,
    bool preserveEndOfMonth,
    bool goForwardOnInvalidDate
);

ITimeOffsetOperator.SubtractDuration Method

Subtracts a time duration.

Public Sub SubtractDuration ( _
    ByVal TimeDuration As ITimeDuration _
)
public void SubtractDuration (
    ITimeDuration TimeDuration
);

Classes that implement ITimeOffsetOperator

Classes Description
Time An object that represents a date and time value.
TimeExtent An object that represents a time-referenced time extent.
TimeInstant An object that represents a time-referenced instant in time.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.