C# Class SteamWebAPI.Utility.DateHelper

ファイルを表示 Open project: babelshift/SteamWebAPI

Public Methods

Method Description
DateTimeToUnix ( System.DateTime dateTime ) : long

Takes a DateTime and converts it to the seconds since 1/1/1970 represented as a Int64 (long). The passed DateTime is preferably occurring after 1/1/1970, behavior is undefined otherwise.

UnixToDateTime ( long timestamp ) : System.DateTime

Method Details

DateTimeToUnix() public static method

Takes a DateTime and converts it to the seconds since 1/1/1970 represented as a Int64 (long). The passed DateTime is preferably occurring after 1/1/1970, behavior is undefined otherwise.
public static DateTimeToUnix ( System.DateTime dateTime ) : long
dateTime System.DateTime
return long

UnixToDateTime() public static method

public static UnixToDateTime ( long timestamp ) : System.DateTime
timestamp long
return System.DateTime