Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49274 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45262 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 1B/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 74.125.82.54 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: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:46468] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/4F-61991-078A16C4 for ; Tue, 10 Aug 2010 15:28:48 -0400 Received: by wwb39 with SMTP id 39so580775wwb.11 for ; Tue, 10 Aug 2010 12:28:45 -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=xLNWgdnFI9PKmugsNTZt2KkYhdd/LgVYgxh4Ex6Pa/U=; b=KD6Be/b8fsZMH36KgW8V+j1P/G58o/PyS169ATIOW7LdZMa3Mj8KwWoz2Xv5MAYrpS 86+d1EFDWqmX9jUPvUqdfT0RgD4CYEy3ucpRpKMX9tIZAeMESaCDTPq0xkXE3TWJ+jL1 ipDN8RGEh1LcyhQhPBWAoyBLjV4DKz44aZtVA= 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=toB+sDBAUAsUV1WwlibV7UazuT8zxFulafd4Yi3nPu2wumzOWdHzMV5SkPadqW1O7B cP88wFnbvSzI7hf8iDNujTvz6OuXDU7AlqZb00DSXWN93PFac74ZJoE6fekttkh8vFck f9/kv2tUfy0lLvmXNbt2jobeKNKaqb5J2YkIM= MIME-Version: 1.0 Received: by 10.227.27.69 with SMTP id h5mr15286566wbc.210.1281468525255; Tue, 10 Aug 2010 12:28:45 -0700 (PDT) Received: by 10.216.16.129 with HTTP; Tue, 10 Aug 2010 12:28:45 -0700 (PDT) In-Reply-To: References: <1281428839.969.2038.camel@guybrush> Date: Tue, 10 Aug 2010 12:28:45 -0700 Message-ID: To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: internals@lists.php.net, Derick Rethans Content-Type: multipart/mixed; boundary=002215b01d523d1d0f048d7d24c1 Subject: Re: [PHP-DEV] SVN Account Request: kriscraig From: kris.craig@gmail.com (Kris Craig) --002215b01d523d1d0f048d7d24c1 Content-Type: multipart/alternative; boundary=002215b01d523d1d06048d7d24bf --002215b01d523d1d06048d7d24bf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sorry, I guess it would help if I actually attached the patch..... Here it is. --Kris 2010/8/10 Kris Craig > 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= up > 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 equinoxe= s > 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 thoug= h, > 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 > much 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 charac= ter > 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 th= e > 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 da= te >> extension. >> >> Can you please send some patches first? We like to see some work before >> handing out accounts. >> >> johannes >> >> >> > --002215b01d523d1d06048d7d24bf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sorry, I guess it would help if I actually attached the patch.....=A0 Here = it is.


--Kris


2010/8/10 Kr= is Craig <kris= ..craig@gmail.com>
Of course!=A0 Her= e'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 a= dded thus far.=A0 The formulas in there took quite a bit of research to fin= d, but ultimately I was able to find them in an old book titled, "Astr= onomical Algorithms" by Jean Meeus.=A0 It's apparently considered = the definitive text on the subject and is used by organizations such as NAS= A to calculate the seasons.=A0 The formulas are accurate to within a few se= conds up to the year AD 3000, but should be accurate to within a few minute= s for several thousand years after that.=A0 I've already tested this an= d 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&#= 39;m still working on).=A0 To test it, simply use date( "v" ); to= display the current season or for a given timestamp.=A0 I chose the letter= "v" for "vuodenaika", which is the Finnish word for &q= uot;season".=A0 I can also send a test PHP script I wrote so you can v= isually compare the seasonal equinoxes identified with your calendar or wha= tever to verify its accuracy.=A0 That reminds me, I still need to make that= into a PHPT case....

The equinoxes are currently rounded to midnight of that given day, thou= gh this can easily be changed to be accurate down to the second since the f= unctions are already in place.=A0 I'm not sure which would be better th= ough, so I figured I'd ask around and see what y'all think about th= at one.

This is just one avenue I'm currently pursuing and I expect to be d= oing much more as time permits.=A0 Professionally, I work as a PHP test eng= ineer for a major software company and most recently was working closely wi= th Pierre on testing and debugging issues with the Win32 5.3.3 and 5.2.14 R= C's.=A0 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= 9;s just for me personally, but if you're looking for someone who can v= ouch for my character and professionalism at least I'm sure he'd be= willing to mention that if asked.=A0 Just to clarify again the source deve= lopment 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 n= eed from me to move this application forward.=A0 Thanks!=A0 =3D)

--K= ris


2010/8/10 Johannes Schl=FCter <jo= hannes@php.net>

On Mon, 2010-08-0= 9 at 18:19 -0700, Kris Craig wrote:
> Currently, I'm working on several parallel feature additions to th= e date extension.

Can you please send some patches first? We like to see some work before
handing out accounts.

johannes




--002215b01d523d1d06048d7d24bf-- --002215b01d523d1d0f048d7d24c1--