C# Class BF2Statistics.DateExtensions

Afficher le fichier Open project: BF2Statistics/ControlCenter

Méthodes publiques

Méthode Description
FromUnixTimestamp ( this target, int timestamp ) : System.DateTime

Converts a timestamp to a UTC DataTime

ToUnixTimestamp ( this target ) : int

Returns the current Unix Timestamp

Method Details

FromUnixTimestamp() public static méthode

Converts a timestamp to a UTC DataTime
public static FromUnixTimestamp ( this target, int timestamp ) : System.DateTime
target this
timestamp int The number of seconds from Epoch
Résultat System.DateTime

ToUnixTimestamp() public static méthode

Returns the current Unix Timestamp
public static ToUnixTimestamp ( this target ) : int
target this
Résultat int