Req #77393 [Opn->Wfx]: Seconds without leading zero
Edit report at https://bugs.php.net/bug.php?id=77393&edit=1
ID: 77393
Updated by: derick@php.net
Reported by: jed_keenan at hotmail dot com
Summary: Seconds without leading zero
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: Date/time related
Operating System: W10
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I don't think we should add this. There is almost no need for formatting a time without leading
zeros for seconds. If you just want to get a number for the seconds, you can use
idate('s') instead.
The date() function also does not support minutes without leading zeroes ('l' is for day
names) and I don't know where you get 'k' from.
Previous Comments:
------------------------------------------------------------------------
[2019-01-03 16:07:42] lagodichyuriy at gmail dot com
I've just attached sample patch. I'm not very smart in C and don't really believe
that this feature will be confirmed, but it looks quite simple to "fix".
------------------------------------------------------------------------
[2019-01-01 19:04:27] jed_keenan at hotmail dot com
Description:
------------
---
From manual page: https://php.net/function.date
---
Any chance of having Seconds without leading zero to go with Hours [%k] and Minutes [%l]? Maybe %q?
Expected result:
----------------
%q = Seconds without leading 0 :)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77393&edit=1
Thread (4 messages)