C# Class DataServer.ExtensionMethods

Afficher le fichier Open project: TNOCS/csTouch

Méthodes publiques

Méthode Description
FromEpoch ( this unixTime ) : System.DateTime

Long extension method to convert a Unix epoch time to a standard C# DateTime object.

ToEpoch ( this dt ) : long

Date Time extension method to return a unix epoch time as a long

ToRelativeDate ( this start, System.DateTime input ) : string

Method Details

FromEpoch() public static méthode

Long extension method to convert a Unix epoch time to a standard C# DateTime object.
public static FromEpoch ( this unixTime ) : System.DateTime
unixTime this
Résultat System.DateTime

ToEpoch() public static méthode

Date Time extension method to return a unix epoch time as a long
public static ToEpoch ( this dt ) : long
dt this
Résultat long

ToRelativeDate() public static méthode

public static ToRelativeDate ( this start, System.DateTime input ) : string
start this
input System.DateTime
Résultat string