Re: [PHP] [IDEA] date_moonrise, date_moonset, and date_moon_info for calculating moonrise and moonset

2010-10-08 Thread Daniel Brown
On Fri, Oct 8, 2010 at 13:29, ELY M. s...@mboca.com wrote:
 I did a search thru all places on php.net for moonrise and moonset
 functions or any comments about moonrise and moonset.
 I can not find anything about moonrise and moonset.
 I am not sure where to submit my ideas.
 I would like to suggest to php developers to add in the moonrise and
 moonset functions.
 I think the moonrise and moonset functions should be added in php.
 date_moonrise
 date_moonset
 date_moon_info
 those functions would be great to have in future version of php.


Do it as a feature request at http://bugs.php.net/ and we'll look
into it.  In related matters, I just approved a user note with a code
snippet example for sunrise and sunset.

-- 
/Daniel P. Brown
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] [IDEA] date_moonrise, date_moonset, and date_moon_info for calculating moonrise and moonset

2010-10-08 Thread Steve Staples

On Fri, 2010-10-08 at 13:33 -0400, Daniel Brown wrote:
 On Fri, Oct 8, 2010 at 13:29, ELY M. s...@mboca.com wrote:
  I did a search thru all places on php.net for moonrise and moonset
  functions or any comments about moonrise and moonset.
  I can not find anything about moonrise and moonset.
  I am not sure where to submit my ideas.
  I would like to suggest to php developers to add in the moonrise and
  moonset functions.
  I think the moonrise and moonset functions should be added in php.
  date_moonrise
  date_moonset
  date_moon_info
  those functions would be great to have in future version of php.
 
 
 Do it as a feature request at http://bugs.php.net/ and we'll look
 into it.  In related matters, I just approved a user note with a code
 snippet example for sunrise and sunset.
 
In his defense, he was talking abut moonrise, and moonset... in some
cases, the moon is up during the middle of the day... 

this originally started out a joke reply... but then after thinking
about what to say, I realized that the moonrise/set does not follow the
sun... crap, i hate my brain... LOL

on a side note, where would you even get this info?  is there a set
formula for sunrise/set?

Steve

 -- 
 /Daniel P. Brown
 Network Infrastructure Manager
 Documentation, Webmaster Teams
 http://www.php.net/
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] [IDEA] date_moonrise, date_moonset, and date_moon_info for calculating moonrise and moonset

2010-10-08 Thread Bob McConnell
From: Steve Staples

 On Fri, 2010-10-08 at 13:33 -0400, Daniel Brown wrote:
 On Fri, Oct 8, 2010 at 13:29, ELY M. s...@mboca.com wrote:
  I did a search thru all places on php.net for moonrise and moonset
  functions or any comments about moonrise and moonset.
  I can not find anything about moonrise and moonset.
  I am not sure where to submit my ideas.
  I would like to suggest to php developers to add in the moonrise
and
  moonset functions.
  I think the moonrise and moonset functions should be added in php.
  date_moonrise
  date_moonset
  date_moon_info
  those functions would be great to have in future version of php.
 
  Do it as a feature request at http://bugs.php.net/ and we'll
look
 into it.  In related matters, I just approved a user note with a code
 snippet example for sunrise and sunset.

 
 In his defense, he was talking abut moonrise, and moonset... in some
 cases, the moon is up during the middle of the day... 
 
 this originally started out a joke reply... but then after thinking
 about what to say, I realized that the moonrise/set does not follow
the
 sun... crap, i hate my brain... LOL
 
 on a side note, where would you even get this info?  is there a set
 formula for sunrise/set?

It would also require both latitude and longitude input parameters.
Rough guess in temperate zones is that for each 250 miles you move west,
it delays the event by 15 minutes. But when you get within 22 degrees of
a pole, the event may not occur for days, or weeks, or ...

Bob McConnell

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] [IDEA] date_moonrise, date_moonset, and date_moon_info for calculating moonrise and moonset

2010-10-08 Thread Daniel P. Brown
On Fri, Oct 8, 2010 at 13:55, Steve Staples sstap...@mnsi.net wrote:
 In his defense, he was talking abut moonrise, and moonset... in some
 cases, the moon is up during the middle of the day...

 this originally started out a joke reply... but then after thinking
 about what to say, I realized that the moonrise/set does not follow the
 sun... crap, i hate my brain... LOL

True, it wouldn't be enough to calculate it as an inverse of solar
traversal, but there are of course predetermined formulae for both
moon phases and its traversal based on longitudinal and latitudinal
coordinates, and adjustments for altitude and horizon variances.

 on a side note, where would you even get this info?  is there a set
 formula for sunrise/set?

Sure.  Look up sunrise and sunset times on Google and you'll see
they're readily available.  Then it's trivial to calculate axial tilt
and time elapse between periods of equinox to find the variances for
dates not already pre-calculated.

-- 
/Daniel P. Brown
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] [IDEA] date_moonrise, date_moonset, and date_moon_info for calculating moonrise and moonset

2010-10-08 Thread Daniel P. Brown
On Fri, Oct 8, 2010 at 14:14, Bob McConnell r...@cbord.com wrote:

 It would also require both latitude and longitude input parameters.
 Rough guess in temperate zones is that for each 250 miles you move west,
 it delays the event by 15 minutes. But when you get within 22 degrees of
 a pole, the event may not occur for days, or weeks, or ...

Yeah, but unfortunately those places are sometimes rather
difficult to visit, which is rather unfortunate.  I have four decades
worth of things to shove where the sun don't shine, by order of
various folks.

By the way --- I realized moments after my previous reply that the
OP is actually the snippet submitter I mentioned in thread, and you
can see his work on the date_sun_info() function's manual page here:

http://php.net/date_sun_info

With a direct link to his submission here:

http://php.net/manual/en/function.date-sun-info.php#100332

-- 
/Daniel P. Brown
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] [IDEA] date_moonrise, date_moonset, and date_moon_info for calculating moonrise and moonset

2010-10-08 Thread Tommy Pham
 -Original Message-
 From: Bob McConnell [mailto:r...@cbord.com]
 Sent: Friday, October 08, 2010 11:15 AM
 To: sstap...@mnsi.net; php-general@lists.php.net
 Subject: RE: [PHP] [IDEA] date_moonrise, date_moonset, and
 date_moon_info for calculating moonrise and moonset
 
 From: Steve Staples
 
  On Fri, 2010-10-08 at 13:33 -0400, Daniel Brown wrote:
  On Fri, Oct 8, 2010 at 13:29, ELY M. s...@mboca.com wrote:
   I did a search thru all places on php.net for moonrise and moonset
   functions or any comments about moonrise and moonset.
   I can not find anything about moonrise and moonset.
   I am not sure where to submit my ideas.
   I would like to suggest to php developers to add in the moonrise
 and
   moonset functions.
   I think the moonrise and moonset functions should be added in php.
   date_moonrise
   date_moonset
   date_moon_info
   those functions would be great to have in future version of php.
  
   Do it as a feature request at http://bugs.php.net/ and we'll
 look
  into it.  In related matters, I just approved a user note with a code
  snippet example for sunrise and sunset.
 
 
  In his defense, he was talking abut moonrise, and moonset... in some
  cases, the moon is up during the middle of the day...
 
  this originally started out a joke reply... but then after thinking
  about what to say, I realized that the moonrise/set does not follow
 the
  sun... crap, i hate my brain... LOL
 
  on a side note, where would you even get this info?  is there a set
  formula for sunrise/set?
 
 It would also require both latitude and longitude input parameters.
 Rough guess in temperate zones is that for each 250 miles you move west,
it
 delays the event by 15 minutes. But when you get within 22 degrees of a
 pole, the event may not occur for days, or weeks, or ...
 
 Bob McConnell
 

The latitude and longitude would only give relative perspective view.  For
accurate measurement, doesn't it requires time of year also since it depends
on rotations of earth around the sun and how far/close the earth to sun,
which will affect the moon's rotation too?  Just remembering my high school
AP Physics on gravitational forces.

Regards,
Tommy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php