C# Class Pchp.Library.DateTimeUtils

Unix TimeStamp to System_DateTime conversion and vice versa
Mostrar archivo Open project: iolevel/peachpie

Public Properties

Property Type Description
UtcStartOfUnixEpoch System.DateTime

Private Properties

Property Type Description
Max System.DateTime
Max System.DateTime
UnixTimeStampToUtc System.DateTime
UtcToUnixTimeStamp int

Private Methods

Method Description
Max ( System.DateTime d1, System.DateTime d2 ) : System.DateTime

Determine maximum of three given System_DateTime values.

Max ( System.DateTime d1, System.DateTime d2, System.DateTime d3 ) : System.DateTime

Determine maximum of three given System_DateTime values.

UnixTimeStampToUtc ( int timestamp ) : System.DateTime

Converts UNIX timestamp (number of seconds from 1.1.1970) to System_DateTime.

UtcToUnixTimeStamp ( System.DateTime dt ) : int

Converts System_DateTime representing UTC time to UNIX timestamp.

Property Details

UtcStartOfUnixEpoch public_oe static_oe property

Time 0 in terms of Unix TimeStamp.
public static DateTime,System UtcStartOfUnixEpoch
return System.DateTime