C# Class org.GraphDefined.Vanaheimr.Illias.DateTimeExtensions

Extensions to the DateTime class.
Afficher le fichier Open project: Vanaheimr/Illias

Méthodes publiques

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

Méthodes publiques

Méthode Description
FromUnixTimestamp ( this UnixTimestamp ) : System.DateTime

Convert the given UNIX timestamp to a .NET DateTime object.

ToIso8601 ( this DateTime ) : String

Convert the given DateTime object to an ISO 8601 datetime string.

ToRfc1123 ( this DateTime ) : String

Convert the given DateTime object to an RFC 1123 datetime string.

ToUnixTimestamp ( this DateTime ) : System.Int64

Convert the given DateTime object to UNIX timestamp.

Method Details

FromUnixTimestamp() public static méthode

Convert the given UNIX timestamp to a .NET DateTime object.
public static FromUnixTimestamp ( this UnixTimestamp ) : System.DateTime
UnixTimestamp this A UNIX timestamp (seconds since 1. January 1970)
Résultat System.DateTime

ToIso8601() public static méthode

Convert the given DateTime object to an ISO 8601 datetime string.
public static ToIso8601 ( this DateTime ) : String
DateTime this A DateTime object.
Résultat String

ToRfc1123() public static méthode

Convert the given DateTime object to an RFC 1123 datetime string.
public static ToRfc1123 ( this DateTime ) : String
DateTime this A DateTime object.
Résultat String

ToUnixTimestamp() public static méthode

Convert the given DateTime object to UNIX timestamp.
public static ToUnixTimestamp ( this DateTime ) : System.Int64
DateTime this A DateTime object.
Résultat System.Int64

Property Details

UnixEpoch public_oe static_oe property

The UNIX epoch.
public static DateTime,System UnixEpoch
Résultat System.DateTime