Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49273 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45254 invoked from network); 10 Aug 2010 19:45:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Aug 2010 19:45:04 -0000 Received: from [127.0.0.1] ([127.0.0.1:10651]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id EA/6F-61991-04CA16C4 for ; Tue, 10 Aug 2010 15:45:04 -0400 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:33538] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/4F-61991-A48A16C4 for ; Tue, 10 Aug 2010 15:28:11 -0400 Received: by eyh6 with SMTP id 6so4445670eyh.29 for ; Tue, 10 Aug 2010 12:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=HhwHVNO/XTGsn3fsJqPwebPRqPF9GXPjE6uzg9D0r2s=; b=A6W6De9Oayrh8NbejWFmlZ0w7c3FsMFshVTo+Ggcla5VCfsCTeGANVIJ85OMze5Eh+ +YXDWlEwMRbpy3AcZjMj0Eub4yBoYUvl6mTDOoGWI1lc/ITSDon/+kYRCriBig5InqSu WFzalURwvLAm5UWormPGM0TkR2d7+kQPjBuKY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=TOpNTBUD784SDOZPhT9I/M2OpgptjTOBKFrBCPnqtnt4tuexrBYJYosEATufqjAGoM c0YsGdta/FUv07RZTmep1dDnDBp36zC2Ln7FNQyDccPKjFzqcF3+77uHiSlHz7nU/Rby fcrDkwk1GPYv8mpcoTvibWM76HxnPSk5cTpEM= MIME-Version: 1.0 Received: by 10.216.8.138 with SMTP id 10mr4346243wer.57.1281468487368; Tue, 10 Aug 2010 12:28:07 -0700 (PDT) Received: by 10.216.16.129 with HTTP; Tue, 10 Aug 2010 12:28:07 -0700 (PDT) In-Reply-To: <1281428839.969.2038.camel@guybrush> References: <1281428839.969.2038.camel@guybrush> Date: Tue, 10 Aug 2010 12:28:07 -0700 Message-ID: To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: internals@lists.php.net, Derick Rethans Content-Type: multipart/alternative; boundary=0016364c7b4ffb001e048d7d2118 Subject: Re: [PHP-DEV] SVN Account Request: kriscraig From: kris.craig@gmail.com (Kris Craig) --0016364c7b4ffb001e048d7d2118 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Of course! Here's a patch of php_date.c (currently based off 5.3.2; I'll need to rebase off 5.3.3 of course) showing the seasonal equinox support I've added thus far. The formulas in there took quite a bit of research to find, but ultimately I was able to find them in an old book titled, "Astronomical Algorithms" by Jean Meeus. It's apparently considered the definitive text on the subject and is used by organizations such as NASA to calculate the seasons. The formulas are accurate to within a few seconds u= p to the year AD 3000, but should be accurate to within a few minutes for several thousand years after that. I've already tested this and it works perfectly thus far. Currently, the only thing these new functions are being used for is to display the season for a given date (northern hemisphere only; southern I'm still working on). To test it, simply use date( "v" ); to display the current season or for a given timestamp. I chose the letter "v" for "vuodenaika", which is the Finnish word for "season". I can also send a test PHP script I wrote so you can visually compare the seasonal equinoxes identified with your calendar or whatever to verify its accuracy. That reminds me, I still need to make that into a PHPT case.... The equinoxes are currently rounded to midnight of that given day, though this can easily be changed to be accurate down to the second since the functions are already in place. I'm not sure which would be better though, so I figured I'd ask around and see what y'all think about that one. This is just one avenue I'm currently pursuing and I expect to be doing muc= h more as time permits. Professionally, I work as a PHP test engineer for a major software company and most recently was working closely with Pierre on testing and debugging issues with the Win32 5.3.3 and 5.2.14 RC's. He hasn't seen any of my programming work as that's not what I do here, nor have I discussed this SVN request with him since it's just for me personally, but if you're looking for someone who can vouch for my characte= r and professionalism at least I'm sure he'd be willing to mention that if asked. Just to clarify again the source development work I'm doing on the PHP core/etc is just me acting on my own personal behalf and not for any company/etc. Please don't hesitate to ask if there's anything else you need from me to move this application forward. Thanks! =3D) --Kris 2010/8/10 Johannes Schl=FCter > On Mon, 2010-08-09 at 18:19 -0700, Kris Craig wrote: > > Currently, I'm working on several parallel feature additions to the dat= e > extension. > > Can you please send some patches first? We like to see some work before > handing out accounts. > > johannes > > > --0016364c7b4ffb001e048d7d2118--