TimeFormat¶
-
php\time\TimeFormat
Class TimeFormat, Immutable
Methods
__construct
($format, $locale = null, $formatSymbols = null)¶
Parameters:
- $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)¶
Parameters:
- $time – php\time\Time
Returns: string
parse
($string, $timeZone = null)¶
Parameters:
- $string – string
- $timeZone – php\time\TimeZone
Returns: php\time\Time, null if parse error then returns
null
__clone
()¶private