Class TimestampExtensions
Extends Timestamp type.
Inherited Members
Namespace: DotNext.Diagnostics
Assembly: DotNext.dll
Syntax
public static class TimestampExtensions
Methods
View SourceIsFuture(Timestamp, TimeProvider)
Gets a value indicating that the current timestamp represents the future point in time.
Declaration
public static bool IsFuture(this Timestamp ts, TimeProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| Timestamp | ts | |
| TimeProvider | provider | The time provider. |
Returns
| Type | Description |
|---|---|
| bool | true if the current timestamp represents the future point in time; otherwise, false. |
IsPast(Timestamp, TimeProvider)
Gets a value indicating that the current timestamp represents the past point in time.
Declaration
public static bool IsPast(this Timestamp ts, TimeProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| Timestamp | ts | |
| TimeProvider | provider | The time provider. |
Returns
| Type | Description |
|---|---|
| bool | true if the current timestamp represents the past point in time; otherwise, false. |