Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Cake
Chronos
Traits
FormattingTrait
setToStringFormat
Cake\Chronos\Traits\FormattingTrait::setToStringFormat PHP Method
FormattingTrait Trait Documentation
Show file
Open project: cakephp/chronos
setToStringFormat()
public
static
method
Set the default format used when type juggling a ChronosInterface instance to a string
public
static
setToStringFormat
(
string
$format
) :
void
$format
string
The format to use in future __toString() calls.
return
void
public static function setToStringFormat($format) { static::$toStringFormat = $format; }
FormattingTrait
__toString
resetToStringFormat
setToStringFormat
toAtomString
toCookieString
toDateString
toDateTimeString
toDayDateTimeString
toFormattedDateString
toIso8601String
toQuarter
toRfc1036String
toRfc1123String
toRfc2822String
toRfc3339String
toRfc822String
toRfc850String
toRssString
toTimeString
toUnixString
toW3cString
toWeek