C# 클래스 HdrHistogram.Utilities.UnixTimeExtensions

Provides helper methods for working with times in Unix Epoch convention.
파일 보기 프로젝트 열기: HdrHistogram/HdrHistogram.NET

공개 메소드들

메소드 설명
MillisecondsSinceUnixEpoch ( this source ) : long

Gets the milliseconds elapsed since the Unix Epoch (01-Jan-1970 UTC)

SecondsSinceUnixEpoch ( this source ) : double

Gets the seconds elapsed since the Unix Epoch (01-Jan-1970 UTC)

ToDateFromMillisecondsSinceEpoch ( this millisecondsSinceUnixEpoch ) : System.DateTime

Returns the date and time specified by the milliseconds since the Unix Epoch

ToDateFromSecondsSinceEpoch ( this secondsSinceUnixEpoch ) : System.DateTime

Returns the date and time specified by the seconds since the Unix Epoch

메소드 상세

MillisecondsSinceUnixEpoch() 공개 정적인 메소드

Gets the milliseconds elapsed since the Unix Epoch (01-Jan-1970 UTC)
Thrown if the Kind is .
public static MillisecondsSinceUnixEpoch ( this source ) : long
source this The source time.
리턴 long

SecondsSinceUnixEpoch() 공개 정적인 메소드

Gets the seconds elapsed since the Unix Epoch (01-Jan-1970 UTC)
Thrown if the Kind is .
public static SecondsSinceUnixEpoch ( this source ) : double
source this The source time.
리턴 double

ToDateFromMillisecondsSinceEpoch() 공개 정적인 메소드

Returns the date and time specified by the milliseconds since the Unix Epoch
public static ToDateFromMillisecondsSinceEpoch ( this millisecondsSinceUnixEpoch ) : System.DateTime
millisecondsSinceUnixEpoch this The milliseconds since epoch
리턴 System.DateTime

ToDateFromSecondsSinceEpoch() 공개 정적인 메소드

Returns the date and time specified by the seconds since the Unix Epoch
public static ToDateFromSecondsSinceEpoch ( this secondsSinceUnixEpoch ) : System.DateTime
secondsSinceUnixEpoch this The seconds since epoch
리턴 System.DateTime