Jour semaine en chiffre(0-6) = ";
echo $date_time_array['wday'];
echo "
Mois en chiffre(1-12) = ";
echo $date_time_array['mon'];
echo "
Jour du mois = ";
echo $date_time_array['mday'];
echo "
Heure = ";
echo $date_time_array['hours'];
echo "
Minute = ";
echo $date_time_array['minutes'];
echo "
Seconds = ";
echo $date_time_array['seconds'];
echo "
";
//"seconds" seconds
//"minutes" minutes
//"hours" hours
//"mday" day of the month
//"wday" day of the week as a number
//"mon" month as a number
//"year" year
//"yday" day of the year as a number
//"month" full month name
$wday= $date_time_array['wday'];
$month= $date_time_array['mon'];
$mday= $date_time_array['mday'];
$hours= $date_time_array['hours'];
$minutes= $date_time_array['minutes'];
$seconds= $date_time_array['seconds'];
$now1=$hours*3600+ $minutes*60+$seconds;
$now=$hours+ $minutes/100 ;
echo "
NOW = $now et $seconds secondes
";
echo "
NOW1 = $now1
";
echo "
";
//avec la suposition que dimanche=0, lundi=1,....samedi=6
if($wday == 0) {
//period = dimanche;
for ($i=0; $i= 20) || ($month==7 & $mday <= 21)) {
//pour simplifier on considere les vacances du 20 juin au 21 aout
//on est en vacances;
if($wday == 6) {
//samedi
for ($i=0; $i