[IDEA] date_moonrise, date_moonset, and date_moon_info for calculatingmoonrise and moonset

[IDEA] date_moonrise, date_moonset, and date_moon_info for calculatingmoonrise and moonset

am 08.10.2010 19:29:38 von Sec

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.







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

Re: [IDEA] date_moonrise, date_moonset, and date_moon_info forcalculating moonrise and moonset

am 08.10.2010 19:33:31 von Daniel Brown

On Fri, Oct 8, 2010 at 13:29, ELY M. 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.

--

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: [IDEA] date_moonrise, date_moonset, and date_moon_infofor calculating moonrise and moonset

am 08.10.2010 19:55:33 von Steven Staples

On Fri, 2010-10-08 at 13:33 -0400, Daniel Brown wrote:
> On Fri, Oct 8, 2010 at 13:29, ELY M. 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

> --
>
> 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: [IDEA] date_moonrise, date_moonset, and date_moon_info for calculating moonrise and moonset

am 08.10.2010 20:14:30 von 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. 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.
>>
>=20
> In his defense, he was talking abut moonrise, and moonset... in some
> cases, the moon is up during the middle of the day...=20
>=20
> 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
>=20
> 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: [IDEA] date_moonrise, date_moonset, and date_moon_info forcalculating moonrise and moonset

am 08.10.2010 20:19:47 von daniel.brown

On Fri, Oct 8, 2010 at 13:55, Steve Staples 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? =A0is 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.

--=20

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: [IDEA] date_moonrise, date_moonset, and date_moon_info forcalculating moonrise and moonset

am 08.10.2010 20:27:56 von daniel.brown

On Fri, Oct 8, 2010 at 14:14, Bob McConnell 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

--

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: [IDEA] date_moonrise, date_moonset, and date_moon_info for calculating moonrise and moonset

am 09.10.2010 01:32:56 von Tommy Pham

> -----Original Message-----
> From: Bob McConnell [mailto:rvm@CBORD.com]
> Sent: Friday, October 08, 2010 11:15 AM
> To: sstaples@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. 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