Noda Time
SystemClock Class
NamespacesNodaTimeSystemClock

[This is preliminary documentation and is subject to change.]

Singleton implementation of IClock which reads the current system time. It is recommended that for anything other than throwaway code, this is only referenced in a single place in your code: where you provide a value to inject into the rest of your application, which should only depend on the interface.
Declaration Syntax
C#Visual BasicVisual C++
public sealed class SystemClock : IClock
Public NotInheritable Class SystemClock _
	Implements IClock
public ref class SystemClock sealed : IClock
Members
All MembersPropertiesFields



IconMemberDescription
Instance
The singleton instance of SystemClock.

Now
Gets the current time as an Instant.

Thread Safety
This type has no state, and is thread-safe. See the thread safety section of the user guide for more information.
Inheritance Hierarchy
Object
SystemClock

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)