C# 클래스 Jayrock.UnixTime

파일 보기 프로젝트 열기: atifaziz/Jayrock 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
EpochUtc System.DateTime

공개 메소드들

메소드 설명
ToDateTime ( double time ) : System.DateTime

Converts Unix time (UTC) into a DateTime instance that represents the same time in local time with a maximum precision of a milliseconds.

This method works with time expressed up through 23:59:59, December 31, 3000, UTC.

ToDateTime ( long time ) : System.DateTime

Converts Unix time (UTC) into a DateTime instance that represents the same time in local time with a maximum precision of a second.

This method works with time expressed up through 23:59:59, December 31, 3000, UTC.

ToDateTime ( long time, int ms ) : System.DateTime

Converts a 64-bit Unix time (UTC) into a DateTime instance that represents the same time in local time (precision can be a second or a millisecond depending on whether the second parameter is zero or not).

See Unix time on Wikipedia for more information. This method works with time expressed up through 23:59:59, December 31, 3000, UTC.

ToDouble ( System.DateTime time ) : double

Converts a DateTime instance (assumed to represent local time) to Unix time (UTC) with a precision of over a second (i.e. fractional part of the returned float-point value is fractions of a second).

ToInt64 ( System.DateTime time ) : long

Converts a DateTime instance (assumed to represent local time) to Unix time (UTC) with a maximum precision of a second.

비공개 메소드들

메소드 설명
UnixTime ( ) : System

메소드 상세

ToDateTime() 공개 정적인 메소드

Converts Unix time (UTC) into a DateTime instance that represents the same time in local time with a maximum precision of a milliseconds.
This method works with time expressed up through 23:59:59, December 31, 3000, UTC.
public static ToDateTime ( double time ) : System.DateTime
time double
리턴 System.DateTime

ToDateTime() 공개 정적인 메소드

Converts Unix time (UTC) into a DateTime instance that represents the same time in local time with a maximum precision of a second.
This method works with time expressed up through 23:59:59, December 31, 3000, UTC.
public static ToDateTime ( long time ) : System.DateTime
time long
리턴 System.DateTime

ToDateTime() 공개 정적인 메소드

Converts a 64-bit Unix time (UTC) into a DateTime instance that represents the same time in local time (precision can be a second or a millisecond depending on whether the second parameter is zero or not).
See Unix time on Wikipedia for more information. This method works with time expressed up through 23:59:59, December 31, 3000, UTC.
public static ToDateTime ( long time, int ms ) : System.DateTime
time long
ms int
리턴 System.DateTime

ToDouble() 공개 정적인 메소드

Converts a DateTime instance (assumed to represent local time) to Unix time (UTC) with a precision of over a second (i.e. fractional part of the returned float-point value is fractions of a second).
public static ToDouble ( System.DateTime time ) : double
time System.DateTime
리턴 double

ToInt64() 공개 정적인 메소드

Converts a DateTime instance (assumed to represent local time) to Unix time (UTC) with a maximum precision of a second.
public static ToInt64 ( System.DateTime time ) : long
time System.DateTime
리턴 long

프로퍼티 상세

EpochUtc 공개적으로 정적으로 프로퍼티

public static DateTime,System EpochUtc
리턴 System.DateTime