C# Class Synology.Extensions.SystemExtensions

Afficher le fichier Open project: DotNetDevs/Synology

Méthodes publiques

Méthode 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 méthode

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

ToUnixTimeStamp() public static méthode

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