Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11851 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88004 invoked by uid 1010); 3 Aug 2004 06:07:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87940 invoked from network); 3 Aug 2004 06:07:43 -0000 Received: from unknown (HELO mta201-rme.xtra.co.nz) (210.86.15.144) by pb1.pair.com with SMTP; 3 Aug 2004 06:07:43 -0000 Received: from mta1-rme.xtra.co.nz ([210.86.15.140]) by mta201-rme.xtra.co.nz with ESMTP id <20040803060741.HKDE5635.mta201-rme.xtra.co.nz@mta1-rme.xtra.co.nz>; Tue, 3 Aug 2004 18:07:41 +1200 Received: from galaxy ([219.89.96.142]) by mta1-rme.xtra.co.nz with ESMTP id <20040803060741.PKBQ21194.mta1-rme.xtra.co.nz@galaxy>; Tue, 3 Aug 2004 18:07:41 +1200 Message-ID: <011601c47920$8d116ba0$0a00a8c0@home.jevon.org> To: "Jason Garber" , References: <1697824207.20040802223614@ionzoft.com> Date: Tue, 3 Aug 2004 18:10:17 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Subject: Re: [PHP-DEV] Date Support From: jevon@jevon.org ("Jevon Wright") I always wished that PHP had VB's set of operators on dates/times... (and also in SQL): year(), month(), date(), time_serial(), and the like. Yes, you can do it with date("...", $x); but then it's just awkward to remember all the operators. Also, I'd always wished that PHP would have support for dates after 32 bit (2037)... when do you think Pecl's Date would get into PHP? Jevon ----- Original Message ----- From: "Jason Garber" To: Sent: Tuesday, August 03, 2004 2:36 PM Subject: [PHP-DEV] Date Support > Hello internals, > > Not to take away from the wonderful and lively "GOTO" discussion, > but... I've got a couple simple questions. > > 1. Is there a particular reason that PHP does not have a really good > set of functions for dealing with true date and time types (i.e. not > timestamps)? > > 2. I think that good date and time handling in PHP would be a > large plus. MySQL provides, imho, a very effective set of tools for > handling dates. I think that this style of date handling, where the > standard format was YYYY-MM-DD HH:MM:SS would be an ideal way to go. > Comments? > > 3. If there is no good reason for not adding this set of functions > to the PHP core, what would be the method of designing an acceptable > set of functions? > > PHP is a feature packed language, but it's strange that this does not > exist in the core. Thanks for your time. > > -- > Best regards, > Jason Garber mailto:jason@ionzoft.com > IonZoft, Inc. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >