TimeFormat¶
-
php\time\TimeFormat
Class TimeFormat, Immutable
Methods
__construct
($format, $locale = null, $formatSymbols = null)¶
Параметры:
- $format –
string
- $locale – php\util\Locale - if
null
then it uses the default locale- $formatSymbols –
array
- [months => [...], short_months, eras, weekdays, short_weekdays, local_pattern_chars]
format
($time)¶
Параметры:
- $time – php\time\Time
Результат:
string
parse
($string, $timeZone = null)¶
Параметры:
- $string –
string
- $timeZone – php\time\TimeZone
Результат: php\time\Time,
null
if parse error then returnsnull
__clone
()¶private