C# Class BitSharper.Common.UnixTime

Class for converting to and from Unix (POSIX) time. Unix time is the number of seconds since the Unix epoch, 1970-1-1 0:0:00.0.
Show file Open project: TangibleCryptography/BitSharper

Public Methods

Method Description
ToUnixTime ( System.DateTime time ) : ulong

Converts a DateTime to unix time. Unix time is the number of seconds between 1970-1-1 0:0:0.0 (unix epoch) and the time (UTC).

Private Methods

Method Description
FromUnixTime ( ulong unixTime ) : System.DateTime

Method Details

ToUnixTime() public static method

Converts a DateTime to unix time. Unix time is the number of seconds between 1970-1-1 0:0:0.0 (unix epoch) and the time (UTC).
public static ToUnixTime ( System.DateTime time ) : ulong
time System.DateTime The date time to convert to unix time
return ulong