You are here: Re: Script to figure out if it's a weekend « PHP Programming Language « IT news, forums, messages
Re: Script to figure out if it's a weekend

Posted by Chuck Anderson on 01/07/08 23:35

ysoussov@gmail.com wrote:
> Hey does anyone know of an easy script to use to figure out whether
> the current date is a weekend or not, i currently have a script that
> returns the current date and time. Also it would be great if it could
> take into account holidays.
>

|gregoriantojd($month, $day, $year) % 7 = $day_of_the_week // Monday = 0|

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Nothing he's got he really needs
Twenty first century schizoid man.
***********************************

 

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

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