C# Класс DocumentDB.Framework.Helpers.EpochDateTimeEx

Показать файл Открыть проект

Открытые методы

Метод Описание
ToDateTime ( this epochDateTime ) : System.DateTime

Convert an amount of seconds elapsed since January 1, 1970 (midnight UTC/GMT) to DateTime

ToEpochDateTime ( this date ) : int

Convert a DateTime to the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT)

Описание методов

ToDateTime() публичный статический Метод

Convert an amount of seconds elapsed since January 1, 1970 (midnight UTC/GMT) to DateTime
public static ToDateTime ( this epochDateTime ) : System.DateTime
epochDateTime this
Результат System.DateTime

ToEpochDateTime() публичный статический Метод

Convert a DateTime to the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT)
public static ToEpochDateTime ( this date ) : int
date this
Результат int