C# Class DocumentDB.Framework.Helpers.EpochDateTimeEx

ファイルを表示 Open project: softwarejc/documentdb-backups-csharp

Public Methods

Method Description
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)

Method Details

ToDateTime() public static method

Convert an amount of seconds elapsed since January 1, 1970 (midnight UTC/GMT) to DateTime
public static ToDateTime ( this epochDateTime ) : System.DateTime
epochDateTime this
return System.DateTime

ToEpochDateTime() public static method

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
return int