Req #18235 [Opn->Wfx]: season parameter for date()

From: Date: Wed, 11 Jan 2017 06:39:59 +0000
Subject: Req #18235 [Opn->Wfx]: season parameter for date()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206501@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=18235&edit=1 ID: 18235 Updated by: heiglandreas@php.net Reported by: daniel at reflexionsdesign dot com Summary: season parameter for date() -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Date/time related Operating System: RedHat Linux 7.3 PHP Version: 4.2.1 Block user comment: N Private report: N New Comment: As that is highly dependent on your current geographic location it's nothing to be added to a datetime-library. Seasons are the "other way round" on the northern and southern hemisphere and arround the equator there are no seasons at all. So sorry, you will need to set that up with userland code. Previous Comments: ------------------------------------------------------------------------ [2009-09-14 13:39:05] derick@php.net If it is so simple, where is your patch? Seriously though... find a link to the algorithms and find somebody who's interested enough in implementing it. ------------------------------------------------------------------------ [2009-09-14 13:19:49] kris dot craig at gmail dot com Is there any reason why this simple feature request has remained in "Open" status for 7 years now without any action?! This should take all of 5 minutes to add in there. And if there's some reason why it shouldn't be, then why hasn't anyone marked the status accordingly? ------------------------------------------------------------------------ [2002-07-09 01:41:06] daniel at reflexionsdesign dot com Because the seasonal begin/end dates can be computed (and are often hard to remember), it would be helpful to have a "season" parameter for the date() function so that, e.g., if it were currently the spring, "date("X",time())" would return the string "spring". Thanks! ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=18235&edit=1

« previous php.bugs (#206501) next »