PHP » GoLang |
login |
register |
about
|
GoLang IntlDateFormatter::localtime
request it (445)
GoLang replacement for PHP's IntlDateFormatter::localtime
[edit | history]
PHP IntlDateFormatter::localtimePHP original manual for IntlDateFormatter::localtime [ show | php.net ]IntlDateFormatter::localtimedatefmt_localtime(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) IntlDateFormatter::localtime -- datefmt_localtime — Parse string to a field-based time value DescriptionObject oriented style
public array IntlDateFormatter::localtime
( string
$value
[, int &$position
] )Procedural style Converts string $value to a field-based time value ( an array of various fields), starting at $parse_pos and consuming as much of the input value as possible. Parameters
Return ValuesLocaltime compatible array of integers : contains 24 hour clock value in tm_hour field ExamplesExample #1 datefmt_localtime() example
<?php Example #2 OO example
<?php The above example will output: First parsed output is tm_sec : 0 , tm_min : 0 , tm_hour : 16 , tm_year : 1969 , tm_mday : 31 , tm_wday : 4 , tm_yday : 365 , tm_mon : 11 , tm_isdst : 0 , See Also
|
more
Recently updated
more
Most requested
more
Last requests
|