Table of Contents

ToUnixEpochTime Method

Definition

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

ToUnixEpochTime(IDecorator<DateTime>)

Converts the enclosed DateTime of the decorator to an equivalent UNIX Epoch time representation.

public static double ToUnixEpochTime(this IDecorator<DateTime> decorator)

Parameters

decorator IDecorator<DateTime>

The IDecorator<T> to extend.

Returns

double

A double value that is equivalent to the enclosed DateTime of the decorator.

Remarks

This implementation converts the enclosed DateTime of the decorator to an UTC representation ONLY if the Kind equals Local.