Re: Programming a calendar system
From: | Carsten Becker @ school <post@...> |
Date: | Friday, May 14, 2004, 11:21 |
On Thu, 29 Apr 2004 21:00:19 -0400, Mark J. Reed <markjreed@...> wrote:
>The first thing we have to do is find out what UNIX time_t 0 is in
>Aréqan. That's 1970-01-01 00:00:00 UTC. Fortunately, I have a
>handy-dandy Julian Day calculator handy.
>
>-986-08-26 22:18:00 UTC Gregorian is JD 1,361,168.42917
>1970-01-01 00:00:00 UTC Gregorian is JD 2,440,587.50000
Where can I find that "handy dandy" convertor? I didn't find it on your
homepage if it's there somewhere at all.
PHP has a function gregoriantojd(), but it does not give out after-period
places. So if you do $value = gregoriantojd(01,01,1970), $value is
2,440,588.
Replies