C# Класс SteamWebAPI.Utility.DateHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

DateTimeToUnix() публичный статический Метод

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
Результат long

UnixToDateTime() публичный статический Метод

public static UnixToDateTime ( long timestamp ) : System.DateTime
timestamp long
Результат System.DateTime