C# Class DNSManagement.Extensions.UnixDateTime

DateTime/Unix datetime converter
Exibir arquivo Open project: drorgl/MSDNSWebAdmin Class Usage Examples

Public Methods

Method Description
DateTimeToUnixTimestamp ( System.DateTime dateTime ) : double

Converts C# DateTime to unix datetime

ToString ( ) : string
UnixDateTime ( System.DateTime timestamp ) : System

.ctor in C# DateTime

UnixDateTime ( double unixtime ) : System

.ctor in unix datetime

UnixTimeStampToDateTime ( double unixTimeStamp ) : System.DateTime

Converts a unix datetime to C# DateTime

Method Details

DateTimeToUnixTimestamp() public static method

Converts C# DateTime to unix datetime
public static DateTimeToUnixTimestamp ( System.DateTime dateTime ) : double
dateTime System.DateTime
return double

ToString() public method

public ToString ( ) : string
return string

UnixDateTime() public method

.ctor in C# DateTime
public UnixDateTime ( System.DateTime timestamp ) : System
timestamp System.DateTime
return System

UnixDateTime() public method

.ctor in unix datetime
public UnixDateTime ( double unixtime ) : System
unixtime double
return System

UnixTimeStampToDateTime() public static method

Converts a unix datetime to C# DateTime
public static UnixTimeStampToDateTime ( double unixTimeStamp ) : System.DateTime
unixTimeStamp double
return System.DateTime