C# Class SteamWebAPI.Utility.DateHelper

Afficher le fichier Open project: babelshift/SteamWebAPI

Méthodes publiques

Méthode 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 méthode

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
Résultat long

UnixToDateTime() public static méthode

public static UnixToDateTime ( long timestamp ) : System.DateTime
timestamp long
Résultat System.DateTime