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 | |
---|---|---|
AddDays | Adds the input amount of days. | |
AddDuration | Adds a time duration. | |
AddHours | Adds the input amount of hours. | |
AddMilliseconds | Adds the input amount of milliseconds. | |
AddMinutes | Adds the input amount of minutes. | |
AddMonths | Adds the input amount of months. | |
AddNanoseconds | Adds the input amount of nanoseconds. | |
AddSeconds | Adds the input amount of seconds. | |
AddWeeks | Adds the input amount of weeks. | |
AddYears | Adds the input amount of years. | |
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. |