Photon Server API
Static Public Member Functions | Static Public Attributes | List of all members
ExitGames.Extensions.DateTimeExtensions Class Reference

Date time extension methods. More...

Static Public Member Functions

static DateTime FromUnixTime (double timestamp)
 Convert unix time stamp to DateTime. More...
 
static DateTime FromUnixTime (this DateTime dateTime, double timestamp)
 Convert unix time stamp to DateTime. More...
 

Static Public Attributes

static readonly DateTime UnixBaseDate = new DateTime(1970, 1, 1)
 unix base date. More...
 

Detailed Description

Date time extension methods.

Member Function Documentation

static DateTime ExitGames.Extensions.DateTimeExtensions.FromUnixTime ( double  timestamp)
inlinestatic

Convert unix time stamp to DateTime.

Parameters
timestampThe timestamp.
Returns
A new DateTime.
static DateTime ExitGames.Extensions.DateTimeExtensions.FromUnixTime ( this DateTime  dateTime,
double  timestamp 
)
inlinestatic

Convert unix time stamp to DateTime.

Parameters
dateTimeThe date time.
timestampThe timestamp.
Returns
A new DateTime.

Member Data Documentation

readonly DateTime ExitGames.Extensions.DateTimeExtensions.UnixBaseDate = new DateTime(1970, 1, 1)
static

unix base date.