Class ClockExtensions
Extension methods for IClock to enable migration to Noda Time 2.0.
Since 1.4.x
Availability net35-Client, PCL
Inherited Members
Namespace: NodaTime
Assembly: NodaTime.dll
Syntax
public static class ClockExtensions
Methods
GetCurrentInstant(IClock)
Gets the current Instant on the time line according to
clock
.
Since 1.4.x
Availability net35-Client, PCL
Declaration
public static Instant GetCurrentInstant(this IClock clock)
Parameters
Type | Name | Description |
---|---|---|
IClock | clock |
Returns
Type | Description |
---|---|
Instant | The current instant on the time line according to this clock. |
Remarks
This extension method in 1.4 is an instance method in 2.0, replacing the
Now property.