TsTime Methods |
The TsTime type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | CreateNonEqCalendarAxis | |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetInterval(Double, Double) | Finds the interval in the time vector where the argument lays in between. If argument is below the first value, 0 is returned. If argument is above last value, the length of the vector is returned. The result is the interval number, one based, meaning that the arg fullfills: (vector[res-1] < arg && arg <= vector[res]) Also the scale factor for interpolating is returned. For linear interpolation arg = vector[res-1] + fraction*(vector[res]-vector[res-1]) arg = (1-fraction)*vector[res-1] + fraction*vector[res] If arg exists in vector, the result is such that arg = vector[res] |
![]() | GetInterval(Double, Double, Int32) |
Same as GetInterval(Double, Double), apart from
that the lastInterval is searched first. This is an optimized version
when successive calls returns interval that are nearby.
|
![]() | GetTime |
Returns the relative time at the given index
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsCalendarAxis |
Returns true if the time axis is a calendar time axis. It returns false for an Undefined_Time
and any of the relative time axis.
|
![]() ![]() | IsCalendarAxis(TsTimeType) |
Returns true if the time axis is a calendar time axis. It returns false for an Undefined_Time
and any of the relative time axis.
|
![]() | IsEquidistantAxis |
Returns true if the time axis is an equidistant time axis.
|
![]() ![]() | IsEquidistantAxis(TsTimeType) |
Returns true if the time axis is an equidistant time axis.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | RelativeTime(DateTime) |
Return the relative time value of the input time
|
![]() | RelativeTime(DateTime, DateTime) |
Return the relative time value of the input time,
having startTime as zero for the relative axis
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |