C# Class BF2Statistics.DateExtensions

Mostrar archivo Open project: BF2Statistics/ControlCenter

Public Methods

Method 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 method

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
return System.DateTime

ToUnixTimestamp() public static method

Returns the current Unix Timestamp
public static ToUnixTimestamp ( this target ) : int
target this
return int