C# Класс Org.BouncyCastle.Utilities.Date.DateTimeUtilities

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
UnixEpoch System.DateTime

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

Метод Описание
CurrentUnixMs ( ) : long

Return the current number of milliseconds since the Unix epoch (1 Jan., 1970 UTC).

DateTimeToUnixMs ( System.DateTime dateTime ) : long

Return the number of milliseconds since the Unix epoch (1 Jan., 1970 UTC) for a given DateTime value.

UnixMsToDateTime ( long unixMs ) : System.DateTime

Create a DateTime value from the number of milliseconds since the Unix epoch (1 Jan., 1970 UTC).

Приватные методы

Метод Описание
DateTimeUtilities ( ) : System

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

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

Return the current number of milliseconds since the Unix epoch (1 Jan., 1970 UTC).
public static CurrentUnixMs ( ) : long
Результат long

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

Return the number of milliseconds since the Unix epoch (1 Jan., 1970 UTC) for a given DateTime value.
'dateTime' is before epoch.
public static DateTimeToUnixMs ( System.DateTime dateTime ) : long
dateTime System.DateTime A UTC DateTime value not before epoch.
Результат long

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

Create a DateTime value from the number of milliseconds since the Unix epoch (1 Jan., 1970 UTC).
public static UnixMsToDateTime ( long unixMs ) : System.DateTime
unixMs long Number of milliseconds since the epoch.
Результат System.DateTime

Описание свойств

UnixEpoch публичное статическое свойство

public static DateTime,System UnixEpoch
Результат System.DateTime