Class ZonedClockBase
Represents a provider of ZonedDateTime instances.
public abstract class ZonedClockBase : IZonedClock, IGenerator<ZonedDateTime>, IGenerator
- Inheritance
-
ZonedClockBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ZonedClockBase(TimeZoneInfo)
Creates a new ZonedClockBase instance.
protected ZonedClockBase(TimeZoneInfo timeZone)
Parameters
timeZone
TimeZoneInfoTime zone of this clock.
Properties
TimeZone
Specifies the time zone of this clock.
public TimeZoneInfo TimeZone { get; }
Property Value
Methods
GetNow()
Returns the current ZonedDateTime.
public abstract ZonedDateTime GetNow()
Returns
- ZonedDateTime
Current ZonedDateTime.