You are here: Re: PHP and dates? Whats wrong with timestamp and julian callendar (for experts) « PHP Programming Language « IT news, forums, messages
Re: PHP and dates? Whats wrong with timestamp and julian callendar (for experts)

Posted by Sjoerd on 02/06/06 20:26

> $DOW = (jddayofweek(unixtojd(mktime(1, 1, 1, $month, $day, $year)))+6)%7;
> $DOW= (jddayofweek(juliantojd($month, $day, $year))+6)%7;

In the first line, you convert from Gregorian to Julian Day Count. In
the second, you convert from Julian to Julian Day Count.

 

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

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