[suspicious - maybe spam] [PHP] Re: [suspicious - maybe spam] Re: [PHP] Re: Help with dates

2005-03-06 Thread Kevin
Greetings Mr Mattias, I wish it was so simple. Because the dates that may need calculating can be before 1970. THis function I have.. and it's semi-working, but I've noticed irregularities during the conversion. Thanks for your suggestion!! Yours, Kevin "Mattias Thorslund" <[EMAIL PROTECTED]>

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Re: Help with dates

2005-03-06 Thread Mattias Thorslund
M. Sokolewicz wrote: well, you can simply use the unix timestamp, since the amount of days / seconds since 0 AD/BC will be a constant (it won't change, trust me), you can simply add it to that, and add a wrapper function to php's time(). You'll be working with VERY big numbers in that case, so

[PHP] Re: Help with dates

2005-03-06 Thread M. Sokolewicz
well, you can simply use the unix timestamp, since the amount of days / seconds since 0 AD/BC will be a constant (it won't change, trust me), you can simply add it to that, and add a wrapper function to php's time(). You'll be working with VERY big numbers in that case, so you can also do it th

[PHP] Re: Help with dates

2005-03-06 Thread Kevin
Hey mr. Barnett, Unfortunately, I do need an accurate calculation, because the calculation will run 2 ways. From and to our calendar. I have no problem creating my own datefunctions if I have some idea on how PHP handles the current ones as a template. Then I can figure out the rest for myself.

[PHP] Re: Help with dates

2005-03-06 Thread Jason Barnett
Kevin wrote: > Hi there, > > I seem to be in a bit of a pickle. > > Right now I'm working on a script that would calculate dates from one > calendar to another. The normal calendar we use and a newly invented one. > > In order to do that I need to find the exact days since the year 0 BC/AD. Do