|
IntlDateFormatter::localtimedatefmt_localtimeParse string to a field-based time value DescriptionObject oriented style
public array IntlDateFormatter::localtime
( string
$value
[, int &$position
] )Procedural style
array datefmt_localtime
( IntlDateFormatter
$fmt
, string $value
[, int &$position
] )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
|