Re: [PHP-DEV] BUG 55240 - wrong date creation

2011-08-03 Thread Lonny Kapelushnik
In the date() function the formats are split up. In date() G is w/o leading zeros and H is w/ leading zeros. Why were these (as well as many others) combined and turned into an either/or for DateTime::createFromFormat? On Wed, Aug 3, 2011 at 4:10 PM, Derick Rethans wrote: > On Wed, 3 Aug 2011,

Re: [PHP-DEV] BUG 55240 - wrong date creation

2011-08-03 Thread Derick Rethans
On Wed, 3 Aug 2011, Nicolai Scheer wrote: > On 03.08.2011 21:29, Joey Smith wrote: > >> 2011/8/4 Nicolai Scheer : > >>> Hi! > >>> > >>> Did anyone had the time to review bug 55240 > >>> (https://bugs.php.net/bug.php?id=55240), yet? > >>> > > > > It definitely appears to be unexpected behaviour - t

Re: [PHP-DEV] BUG 55240 - wrong date creation

2011-08-03 Thread Nicolai Scheer
Hi! On 03.08.2011 21:29, Joey Smith wrote: >> 2011/8/4 Nicolai Scheer : >>> Hi! >>> >>> Did anyone had the time to review bug 55240 >>> (https://bugs.php.net/bug.php?id=55240), yet? >>> > > It definitely appears to be unexpected behaviour - the 'G' format for > hours is "24-hour format without lea

Re: [PHP-DEV] BUG 55240 - wrong date creation

2011-08-03 Thread Joey Smith
On Wed, Aug 03, 2011 at 01:29:54PM -0600, Joey Smith wrote: > DateTime::createFromFormat("dn", "118") > -- Did you mean "August 11th", "November 8th", or "June 1st"? Pardon my idiocy, here - it's quite clear that "November 8th" wouldn't be a possible meaning here - I collapsed a couple of example

Re: [PHP-DEV] BUG 55240 - wrong date creation

2011-08-03 Thread Joey Smith
On Thu, Aug 04, 2011 at 01:06:38AM +0800, Laruence wrote: > Hi: >I read the ext/date/lib/parse_date.c, and I think this could not be a bug , >since 800 will be think as 80h 0min(timelib_get_nr is common > function, to get number from data description string with fixed max > length), >th

Re: [PHP-DEV] BUG 55240 - wrong date creation

2011-08-03 Thread Laruence
Hi: I read the ext/date/lib/parse_date.c, and I think this could not be a bug , since 800 will be think as 80h 0min(timelib_get_nr is common function, to get number from data description string with fixed max length), than 11 + (80 / 24) ~= 14 thanks 2011/8/4 Nicolai Scheer : > Hi! > >

[PHP-DEV] BUG 55240 - wrong date creation

2011-08-03 Thread Nicolai Scheer
Hi! Did anyone had the time to review bug 55240 (https://bugs.php.net/bug.php?id=55240), yet? So far it just has been adjusted to reflect the right package. Any pointers are welcome! Grettings, Nico -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php