Table of Contents

ToLocalKind Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Extensions/DateTimeDecoratorExtensions.cs

ToLocalKind(IDecorator<DateTime>)

Converts the enclosed DateTime of the decorator to a local time representation.

public static DateTime ToLocalKind(this IDecorator<DateTime> decorator)

Parameters

decorator IDecorator<DateTime>

The IDecorator<T> to extend.

Returns

DateTime

A new DateTime value initialized to Local that has the same number of ticks as the enclosed DateTime of the decorator.

Exceptions

ArgumentNullException

decorator cannot be null.