C# Class Org.BouncyCastle.Utilities.Date.DateTimeUtilities

Afficher le fichier Open project: nonorganic/dssnet Class Usage Examples

Méthodes publiques

Свойство Type Description
UnixEpoch System.DateTime

Méthodes publiques

Méthode Description
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).

Private Methods

Méthode Description
DateTimeUtilities ( ) : System

Method Details

CurrentUnixMs() public static méthode

Return the current number of milliseconds since the Unix epoch (1 Jan., 1970 UTC).
public static CurrentUnixMs ( ) : long
Résultat long

DateTimeToUnixMs() public static méthode

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.
Résultat long

UnixMsToDateTime() public static méthode

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.
Résultat System.DateTime

Property Details

UnixEpoch public_oe static_oe property

public static DateTime,System UnixEpoch
Résultat System.DateTime