note 34587 added to function.jddayofweek

From: Date: Thu, 31 Jul 2003 13:59:14 +0000
Subject: note 34587 added to function.jddayofweek
Groups: php.notes 
Request: Send a blank email to php-notes+get-53077@lists.php.net to get a copy of this message
To: b dot dominik at gmx dot net You need to compile with: --enable-calendar See: http://www.php.net/manual/en/ref.calendar.php To; Wilfried The calendar functions are based on julian day count. Which is probably not the calendar you use. This is how to do it: <?php $year='2003'; $month='03'; $day='28'; //convert to julian daycount $jd = gregoriantojd( $month, $day, $year); // get the week day $WeekDay = jddayofweek( $jd, 1); echo "The day is: ".$WeekDay; ?> ---- Manual Page -- http://www.php.net/manual/en/function.jddayofweek.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34587 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34587&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34587&report=yes

« previous php.notes (#53077) next »