C# Class WaveBox.Core.Extensions.DateTimeExtensions

ファイルを表示 Open project: einsteinx2/WaveBox

Public Methods

Method Description
ToDateTime ( this unixTime ) : System.DateTime

Creates universal DateTime object from an input UNIX timestamp

ToETag ( this dateTime ) : string
ToRFC1123 ( this dateTime ) : string
ToUnixTime ( this dateTime ) : long

Creates a GMT UNIX timestamp from a DateTime object

Method Details

ToDateTime() public static method

Creates universal DateTime object from an input UNIX timestamp
public static ToDateTime ( this unixTime ) : System.DateTime
unixTime this
return System.DateTime

ToETag() public static method

public static ToETag ( this dateTime ) : string
dateTime this
return string

ToRFC1123() public static method

public static ToRFC1123 ( this dateTime ) : string
dateTime this
return string

ToUnixTime() public static method

Creates a GMT UNIX timestamp from a DateTime object
public static ToUnixTime ( this dateTime ) : long
dateTime this
return long