C# Класс HdrHistogram.Utilities.UnixTimeExtensions

Provides helper methods for working with times in Unix Epoch convention.
Показать файл Открыть проект

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

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