[tz] Montreal timezone
Random832
random832 at fastmail.com
Mon Apr 18 15:47:14 UTC 2016
On Mon, Apr 18, 2016, at 11:34, Derick Rethans wrote:
> PHP has an internal version of the library, and provides a file for
> listing all timezone identifiers:
> http://php.net/manual/en/datetimezone.listidentifiers.php
Yes, but it's the application's decision, not PHP's, to expose the
output of that function to the public, rather than the output of the
getLocation function you mentioned below..
> > Why does your program expose the timezone names instead of the
> > descriptions from zone.tab - in this case, the current description of
> > America/Toronto is "Eastern - ON, QC (most areas)"?
>
> And PHP exposes that through:
>
> derick at whisky:/tmp $ php -n -r '$tz = new DateTimeZone( "America/Toronto"
> ); var_dump( $tz->getLocation() );'
More information about the tz
mailing list