Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Cake
Chronos
Traits
FactoryTrait
now
Cake\Chronos\Traits\FactoryTrait::now PHP Method
FactoryTrait Trait Documentation
Datei anzeigen
Open project: cakephp/chronos
now()
public
static
method
Get a ChronosInterface instance for the current date and time
public
static
now
(
DateTimeZon\DateTimeZone |
string
|
null
$tz
= null ) :
static
$tz
DateTimeZon\DateTimeZone |
string
|
null
The DateTimeZone object or timezone name.
return
static
public static function now($tz = null) { return new static('now', $tz); }
FactoryTrait
create
createFromDate
createFromFormat
createFromTime
createFromTimestamp
createFromTimestampUTC
getLastErrors
instance
maxValue
minValue
now
parse
safeCreateDateTimeZone
today
tomorrow
yesterday