Method IsPast
IsPast(DateTime)
Returns true if time
references a time in the past.
Declaration
public static bool IsPast(this DateTime time)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | time | The System.DateTime to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified date and time is in the future, otherwise false. |
Remarks
This compares time
to System.DateTime.Now.
IsPast(DateTime, IClock)
Returns true if time
references a time in the past.
Declaration
public static bool IsPast(this DateTime time, IClock clock)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | time | The System.DateTime to check. |
IClock | clock | A IClock implementation used to obtain the current time. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified date and time is in the future, otherwise false. |
Remarks
This compares time
to System.DateTime.Now.