Noda Time
Show / Hide Table of Contents

Class ClockExtensions

Extension methods for IClock to enable migration to Noda Time 2.0.
Since 1.4.x
Availability net35-Client, PCL
Inheritance
Object
ClockExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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.
In this article
Back to top Generated by DocFX