Table of Contents

Class ZonedClockBase

Namespace
LfrlAnvil.Chrono.Internal
Assembly
LfrlAnvil.Chrono.dll

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 TimeZoneInfo

Time zone of this clock.

Properties

TimeZone

Specifies the time zone of this clock.

public TimeZoneInfo TimeZone { get; }

Property Value

TimeZoneInfo

Methods

GetNow()

Returns the current ZonedDateTime.

public abstract ZonedDateTime GetNow()

Returns

ZonedDateTime

Current ZonedDateTime.