C# 클래스 SteamWebAPI.Utility.DateHelper

파일 보기 프로젝트 열기: babelshift/SteamWebAPI

공개 메소드들

메소드 설명
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