C# Class DocumentDB.Framework.Helpers.EpochDateTimeEx

Afficher le fichier Open project: softwarejc/documentdb-backups-csharp

Méthodes publiques

Méthode 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 méthode

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

ToEpochDateTime() public static méthode

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
Résultat int