C# Class Synology.Extensions.SystemExtensions

Mostra file Open project: DotNetDevs/Synology

Public Methods

Method Description
ToDateTime ( this timestamp ) : System.DateTime

Performs conversion from a Unix timestamp to a DateTime

ToUnixTimeStamp ( this dateTime ) : long

Performs conversion from a DateTime to Unix timestamp

Method Details

ToDateTime() public static method

Performs conversion from a Unix timestamp to a DateTime
public static ToDateTime ( this timestamp ) : System.DateTime
timestamp this
return System.DateTime

ToUnixTimeStamp() public static method

Performs conversion from a DateTime to Unix timestamp
public static ToUnixTimeStamp ( this dateTime ) : long
dateTime this The DateTime to convert
return long