C# Class DateTime, peachpie

Representation of date and time.
Afficher le fichier Open project: iolevel/peachpie Class Usage Examples

Protected Properties

Свойство Type Description
_ctx Context

Private Properties

Свойство Type Description
StrToTime System.DateTime

Méthodes publiques

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

Méthode Description
StrToTime ( string timestr, System.DateTime time ) : System.DateTime

Method Details

DateTime() public méthode

public DateTime ( Context ctx ) : Pchp.Core
ctx Context
Résultat Pchp.Core

DateTime() public méthode

public DateTime ( Context ctx, string time ) : Pchp.Core
ctx Context
time string
Résultat Pchp.Core

DateTime() public méthode

public DateTime ( Context ctx, string time, DateTimeZone, timezone ) : Pchp.Core
ctx Context
time string
timezone DateTimeZone,
Résultat Pchp.Core

createFromFormat() public static méthode

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

format() public méthode

public format ( string format ) : object
format string
Résultat object

getOffset() public méthode

public getOffset ( ) : int
Résultat int

getTimestamp() public méthode

public getTimestamp ( ) : int
Résultat int

modify() public méthode

public modify ( string modify ) : global::DateTime
modify string
Résultat global::DateTime

setDate() public méthode

public setDate ( int year, int month, int day ) : object
year int
month int
day int
Résultat object

setTime() public méthode

public setTime ( int hour, int minute, int second ) : object
hour int
minute int
second int
Résultat object

setTimeZone() public méthode

public setTimeZone ( DateTimeZone, timezone ) : object
timezone DateTimeZone,
Résultat object

Property Details

_ctx protected_oe property

protected Context _ctx
Résultat Context