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

Extensions to the DateTime class.
Mostrar archivo Open project: Vanaheimr/Illias

Public Properties

Property Type Description
UnixEpoch System.DateTime

Public Methods

Method 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 method

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)
return System.DateTime

ToIso8601() public static method

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

ToRfc1123() public static method

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

ToUnixTimestamp() public static method

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

Property Details

UnixEpoch public_oe static_oe property

The UNIX epoch.
public static DateTime,System UnixEpoch
return System.DateTime