Clock

Used to get date time information.

Namespace:
KpokPatagon.Timing
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
Yes

Properties

Kind

Gets the current provider date time kind.

Signature:
public DateTimeKind Kind { get; }

Now

Gets Now using the current clock provider.

Signature:
public DateTime Now { get; }

Provider

An IClockProvider to use to perform date time operations. Defaults to UtcClockProvider.

Signature:
public IClockProvider Provider { get; set; }

Methods

Normalize

Normalizes dateTime using the current provider.

Signature:
public DateTime Normalize(dateTime)
Parameters
Name Type Summary
dateTime DateTime