C# Class DateTime, peachpie

Representation of date and time.
Exibir arquivo Open project: iolevel/peachpie Class Usage Examples

Protected Properties

Property Type Description
_ctx Context

Private Properties

Property Type Description
StrToTime System.DateTime

Public Methods

Method Description
DateTime ( Context ctx ) : Pchp.Core
DateTime ( Context ctx, string time ) : Pchp.Core
DateTime ( Context ctx, string time, DateTimeZone, timezone ) : Pchp.Core
createFromFormat ( Context ctx, string format, string time, DateTimeZone, timezone = null ) : object
format ( string format ) : object
getOffset ( ) : int
getTimestamp ( ) : int
modify ( string modify ) : global::DateTime
setDate ( int year, int month, int day ) : object
setTime ( int hour, int minute, int second ) : object
setTimeZone ( DateTimeZone, timezone ) : object

Private Methods

Method Description
StrToTime ( string timestr, System.DateTime time ) : System.DateTime

Method Details

DateTime() public method

public DateTime ( Context ctx ) : Pchp.Core
ctx Context
return Pchp.Core

DateTime() public method

public DateTime ( Context ctx, string time ) : Pchp.Core
ctx Context
time string
return Pchp.Core

DateTime() public method

public DateTime ( Context ctx, string time, DateTimeZone, timezone ) : Pchp.Core
ctx Context
time string
timezone DateTimeZone,
return Pchp.Core

createFromFormat() public static method

public static createFromFormat ( Context ctx, string format, string time, DateTimeZone, timezone = null ) : object
ctx Context
format string
time string
timezone DateTimeZone,
return object

format() public method

public format ( string format ) : object
format string
return object

getOffset() public method

public getOffset ( ) : int
return int

getTimestamp() public method

public getTimestamp ( ) : int
return int

modify() public method

public modify ( string modify ) : global::DateTime
modify string
return global::DateTime

setDate() public method

public setDate ( int year, int month, int day ) : object
year int
month int
day int
return object

setTime() public method

public setTime ( int hour, int minute, int second ) : object
hour int
minute int
second int
return object

setTimeZone() public method

public setTimeZone ( DateTimeZone, timezone ) : object
timezone DateTimeZone,
return object

Property Details

_ctx protected_oe property

protected Context _ctx
return Context