php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80207 DateTimeZone::getTransitions return array
Submitted: 2020-10-08 22:23 UTC Modified: 2020-10-09 08:29 UTC
From: alyssa dot retodo at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Date/time related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alyssa dot retodo at gmail dot com
New email:
PHP Version: OS:

 

 [2020-10-08 22:23 UTC] alyssa dot retodo at gmail dot com
Description:
------------
---
From manual page: https://php.net/datetimezone.gettransitions
---
This function returns a "numerically indexed array containing associative array with all transitions", but there are no further details on the array values. The documentation should describe the values returned in the array. It took some experimenting to determine that the 'time' value is returned in UTC, as opposed to local time. It might be helpful to others to detail the other array items as well. For example, it might not be obvious to all that 'ts' = timestamp.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-09 08:28 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=00232074c553aa75f1962b476e844fb2a351152c
Log: Fix #80207: DateTimeZone::getTransitions return array
 [2020-10-09 08:28 UTC] phpdocbot@php.net
-Status: Open +Status: Closed
 [2020-10-09 08:29 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2020-12-30 11:58 UTC] nikic@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=a09d38112d72adfc9d82e0832b1f01cb71d145db
Log: Fix #80207: DateTimeZone::getTransitions return array
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 08:01:29 2024 UTC