You are here: Re: Help with dates « PHP « IT news, forums, messages
Re: Help with dates

Posted by M. Sokolewicz on 03/07/05 00:39

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 the other way around; store the amount of DAYS since 0 AD/BC
till Jan 1st 1970, add time()/86400, and you'll have the amount of days
since 0 AD/BC in an integer (or float, depending on how many days that
really are).

You'll just need to find that constant somewhere :)

Kevin wrote:
> 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.
>
> Would you know where I might find more info regarding this in stead?
>
> Yours,
>
> Kevin
> Well
> "Jason Barnett" <jason.barnett@telesuite.com> wrote in message
> news:20050306204451.52181.qmail@lists.php.net...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация