Table of Contents

ToUnixEpochTime Method

Definition

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

ToUnixEpochTime(DateTime)

Converts the specified value to an equivalent UNIX Epoch time representation.

public static double ToUnixEpochTime(this DateTime value)

Parameters

value DateTime

The DateTime value to extend.

Returns

double

A double value that is equivalent to value.

Remarks

This implementation converts the value to an UTC representation ONLY if the Kind equals Local.