C# Class BridgeStack.UnixDateTimeHelpers

Date Time helpers to assist in JSON deserialization.
显示文件 Open project: bevacqua/BridgeStack

Public Methods

Method Description
AsUnixDate ( this self ) : System.DateTime

Parses a long representation of an Unix Date into a DateTime.

ToUnixDate ( this self ) : long

Parses a DateTime into it's long representation in Unix Date format.

Method Details

AsUnixDate() public static method

Parses a long representation of an Unix Date into a DateTime.
public static AsUnixDate ( this self ) : System.DateTime
self this The long representation of an Unix Date.
return System.DateTime

ToUnixDate() public static method

Parses a DateTime into it's long representation in Unix Date format.
public static ToUnixDate ( this self ) : long
self this The DateTime object to parse.
return long