Default long/lat. Why?

php.internals

Richard Quadling

19 years ago
Probably a daft question, but why are the default long/lat set as #define DATE_DEFAULT_LATITUDE "31.7667" #define DATE_DEFAULT_LONGITUDE "35.2333" ? Looks like the middle of the Atlantic Ocean.
-- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"

Antony Dovgal

19 years ago
On 10/12/2006 06:56 PM, Richard Quadling wrote:
> Probably a daft question, but why are the default long/lat set as > > #define DATE_DEFAULT_LATITUDE "31.7667" > #define DATE_DEFAULT_LONGITUDE "35.2333" > > ? > > Looks like the middle of the Atlantic Ocean. >
No, it's Jerusalem. http://maps.google.com/maps?f=q&hl=en&q=31.7667+35.2333&ie=UTF8&z=12&ll=31.766705,35.233154&spn=0.155871,0.484085&t=k&om=1&iwloc=A
-- Wbr, Antony Dovgal

Alexander Wirtz

19 years ago
The C-Algorithm was written by Moshe Doron and the coordinates point to Israel... there might be a connection... (btw. positive longituted point to the east) Regards, Alexander Richard Quadling wrote:

Steph

19 years ago
You obviously haven't seen this map: http://www.zionism-israel.com/maps/Jerusalem_1581_Map.htm See, Jerusalem _is_ at the centre of the universe! - Steph (Jerusalem) ps jk ----- Original Message ----- From: "Alexander M. Wirtz" <lists@zyanka.li> To: <RQuadling@GoogleMail.com> Cc: "php internals LIST" <internals@lists.php.net> Sent: Thursday, October 12, 2006 5:27 PM Subject: Re: [PHP-DEV] Default long/lat. Why?

Andi Gutmans

19 years ago
Exactly. And note where America is :) Anyway, I see no reason not to keep it this way.

Lester Caine

19 years ago
Andi Gutmans wrote:
> Exactly. And note where America is :)
England is nicely isolated as well :)
> Anyway, I see no reason not to keep it this way.
And default to the Jewish calendar as well ;) Time zero is Greenwich so shouldn't the location be that?
> You obviously haven't seen this map: >> >> http://www.zionism-israel.com/maps/Jerusalem_1581_Map.htm
-- Lester Caine - G8HFL ----------------------------- L.S.Caine Electronic Services - http://home.lsces.co.uk Model Engineers Digital Workshop - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php

Derick Rethans

19 years ago
On Fri, 13 Oct 2006, Lester Caine wrote:
> Andi Gutmans wrote: > > > Exactly. And note where America is :) > England is nicely isolated as well :) > > > Anyway, I see no reason not to keep it this way. > And default to the Jewish calendar as well ;) > Time zero is Greenwich so shouldn't the location be that?
No, why? If I change it, it would be to 59.21 N, 9.608 E regards, Derick

Alain Williams

19 years ago
On Fri, Oct 13, 2006 at 01:28:54PM +0200, Derick Rethans wrote:
> > > Anyway, I see no reason not to keep it this way. > > And default to the Jewish calendar as well ;) > > Time zero is Greenwich so shouldn't the location be that? > > No, why? If I change it, it would be to 59.21 N, 9.608 E
Skein in Norway ... where you live ?
-- Alain Williams Parliament Hill Computers Ltd. Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ #include <std_disclaimer.h>

Richard Lynch

19 years ago
On Fri, October 13, 2006 6:28 am, Derick Rethans wrote:
> On Fri, 13 Oct 2006, Lester Caine wrote: > >> Andi Gutmans wrote: >> >> > Exactly. And note where America is :) >> England is nicely isolated as well :) >> >> > Anyway, I see no reason not to keep it this way. >> And default to the Jewish calendar as well ;) >> Time zero is Greenwich so shouldn't the location be that? > > No, why? If I change it, it would be to 59.21 N, 9.608 E
0, 0 perhaps? 90 N, 0 E for Santa's workshop? Or, -90, 0 for the penguins? Do the constants NEED to exist?... :-v What does it hurt to have them stay as-is?
-- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

Richard Quadling

19 years ago
On 13/10/06, Richard Lynch <ceo@l-i-e.com> wrote:
> On Fri, October 13, 2006 6:28 am, Derick Rethans wrote: > > On Fri, 13 Oct 2006, Lester Caine wrote: > > > >> Andi Gutmans wrote: > >> > >> > Exactly. And note where America is :) > >> England is nicely isolated as well :) > >> > >> > Anyway, I see no reason not to keep it this way. > >> And default to the Jewish calendar as well ;) > >> Time zero is Greenwich so shouldn't the location be that? > > > > No, why? If I change it, it would be to 59.21 N, 9.608 E > > 0, 0 perhaps? > > 90 N, 0 E for Santa's workshop? > > Or, -90, 0 for the penguins? > > Do the constants NEED to exist?... :-v > > What does it hurt to have them stay as-is?
My only issue is that there is no documentation to describe what the values represent. I didn't realise that +ve longitude was East. If there is a good website that allows you to find your city/company/etc and then describe the location in values you can use in the PHP.INI file, then that would be useful. Alternatively, allowing the settings to be entered as 50 23 12.97N 31 57 07.74W as a single value which you get from a lot of map software (google earth for example).
-- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&amp;r=213474731 "Standing on the shoulders of some very clever giants!"

Derick Rethans

19 years ago
On Thu, 12 Oct 2006, Richard Quadling wrote:
> Probably a daft question, but why are the default long/lat set as > > #define DATE_DEFAULT_LATITUDE "31.7667" > #define DATE_DEFAULT_LONGITUDE "35.2333" > > Looks like the middle of the Atlantic Ocean.
yeah, i was surprised by this as well... but for bc reasons I had to keep it in the reimplementation of the date stuff. Might kick it out in PHP 6 :) regards, Derick

Arpad Ray

19 years ago
Actually it seems to be near Yerushalayim (Jerusalem?), Israel which makes some sense given Zend's origins. http://www.mapquest.com/maps/map.adp?searchtype=address&formtype=address&latlongtype=decimal&latitude=31.7667&longitude=35.2333 Arpad Derick Rethans wrote:

Ron Korving

19 years ago
What default would make sense? Greenwhich, UK perhaps? (GMT) - Ron "Derick Rethans" <derick@php.net> schreef in bericht news:Pine.LNX.4.62.0610121741420.3567@localhost...