#21955 [Bgs]: date() feature request

From: Date: Wed, 26 Feb 2003 21:10:01 +0000
Subject: #21955 [Bgs]: date() feature request
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34368@lists.php.net to get a copy of this message
ID: 21955 User updated by: mark dot young at vdhinc dot com Reported By: mark dot young at vdhinc dot com Status: Bogus Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.3.0 New Comment: Of course it's easy. The point is, the codes are difficult to remember, so I always have to look them up for every new use of date. I was suggesting that 5 or 10 of the most common date formats be predefined. like date("1") would be defined as date("F j, Y"), as a simple example. This way, PHP developers would only need to remember the single code that fits the date format they use most often, instead of remembering that "F" is a month name. It was a simple suggestion I thought you guys could very easily implement, and would benefit the community. There was no need for sarcasm. Previous Comments: ------------------------------------------------------------------------ [2003-02-26 00:12:25] sniper@php.net Yes, and I'd like that PHP made coffee too. Seriously, it's not that hard to put the formats you use into a constant or variable.. ------------------------------------------------------------------------ [2003-01-29 18:04:51] mark dot young at vdhinc dot com I'd like to see the date() function have some predefined common date formats: date("1") = "2002-1-31" date("2") = "January 31, 2002" date("3") = etc... I constantly keep looking up the little letters to make various super common date formats. ("Is the month an F or an M or an m?") ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21955&edit=1

« previous php.bugs (#34368) next »