Method | Description | |
---|---|---|
DividesDates ( Date first, Date last ) : bool |
Determines if an Interval will divide the time period delimited by two dates exactly.
|
|
Equals ( |
Compares two Interval instance to see if they contain the same information. This routine takes into account the equivalence of certain time intervals (e.g. 1Y = 12M and 1W = 7D). |
|
Equals ( object other ) : bool |
Compares an Interval instance with another object to see if they contain the same information. This routine takes into account the equivalence of certain time intervals (e.g. 1Y = 12M and 1W = 7D). |
|
GetHashCode ( ) : int |
Produces a hash value for the instance.
|
|
Interval ( int multiplier, |
Constructs an Interval from the provided multiplier and time unit.
|
|
Interval ( int multiplier, string code ) : System |
Constructs an Interval from the provided multiplier and time unit code.
|
|
IsMultipleOf ( |
Determines if this Interval is an integer multiple of another. The calculation recognises that a week is seven days and that a year is twelve months. It also allows 1T to match any time period longer than a day and for any time period to be a multiple of 1 day. |
|
Plus ( |
Calculates the result of adding another Interval to this one.
|
|
ToString ( ) : string |
Creates a debugging string describing the instance.
|
public DividesDates ( Date first, Date last ) : bool | ||
first | Date | The first date. |
last | Date | The last date. |
return | bool |
public Equals ( |
||
other | The other Interval instance. | |
return | bool |
public Equals ( object other ) : bool | ||
other | object | The |
return | bool |
public Interval ( int multiplier, |
||
multiplier | int | The time period multiplier. |
period | The time period unit. | |
return | System |
public Interval ( int multiplier, string code ) : System | ||
multiplier | int | The time period unit multiplier. |
code | string | The timer period unit code |
return | System |
public IsMultipleOf ( |
||
other | The other Interval instance. | |
return | bool |
public Plus ( |
||
other | The Interval to add. | |
return |