C# Class BridgeStack.UnixTimeSpanHelpers

Time Span helpers to assist in JSON deserialization.
ファイルを表示 Open project: bevacqua/BridgeStack

Public Methods

Method Description
AsUnixTime ( this self ) : System.TimeSpan

Parses a long representation of an Unix TimeSpan into a TimeSpan.

ToUnixTime ( this self ) : long

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

Method Details

AsUnixTime() public static method

Parses a long representation of an Unix TimeSpan into a TimeSpan.
public static AsUnixTime ( this self ) : System.TimeSpan
self this The long representation of an Unix TimeSpan.
return System.TimeSpan

ToUnixTime() public static method

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