php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #29150 Roman number format for months
Submitted: 2004-07-14 15:55 UTC Modified: 2007-08-02 21:29 UTC
From: ataols at latnet dot lv Assigned: derick (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.3.7 OS: Gentoo Linux
Private report: No CVE-ID: None
 [2004-07-14 15:55 UTC] ataols at latnet dot lv
Description:
------------
 Why functions "date", "strftime" and similars does not support months numbers output in Roman numbers? (For example, "VII" for July.) Many nations use it as the one of or even the main month writing format, and it would be just normal that you add such formatting possibility.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-14 16:02 UTC] eru@php.net
Isn't http://pear.php.net/package/Numbers_Roman good enough for you? Another argument would be, that strftime is modelled after the c-function.

 [2004-07-14 16:11 UTC] ataols at latnet dot lv
It is good enough, but not for this case. It's not a problem to write a conversion function, I can do (and I already did)it myself. But, for example, if I need to store different time formats choosed by users, the formats with Arabic months' numbers I can store just a parametter for those functions, but for Roman monnt's numbers I need an additional conversion function. I think, it is better to integrate such possibility in "date", "strftime" and similar functions. It is the sense of these functions to have an ability to output the date in any popular format, and the months output with Roman numbers is popular enough to be included.
 [2004-07-14 16:11 UTC] ataols at latnet dot lv
It is good enough, but not for this case. It's not a problem to write a conversion function, I can do (and I already did)it myself. But, for example, if I need to store different time formats choosed by users, the formats with Arabic months' numbers I can store just a parametter for those functions, but for Roman monnt's numbers I need an additional conversion function. I think, it is better to integrate such possibility in "date", "strftime" and similar functions. It is the sense of these functions to have an ability to output the date in any popular format, and the months output with Roman numbers is popular enough to be included.
 [2004-07-14 16:38 UTC] derick@php.net
Assigning to myself, i will have a look at this for my new datetime stuff.
 [2005-06-20 09:34 UTC] derick@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed for PHP 5.1.
 [2007-08-02 21:29 UTC] ataols at latnet dot lv
I still can not find it in the date() function manual. What's happen, is it included or not?
 [2013-02-10 12:26 UTC] bluefish6 at wp dot pl
Still not working as of 2013 :P
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 07:01:29 2024 UTC