예제 #1
0
 public function count_end_time($date)
 {
     //print $date.'<br>';
     $weekdate = tool::get_weekday($date, 2);
     $time_stamp = strtotime($date);
     if ($weekdate == 6 || $weekdate == 7) {
         $timeend = date("Y-m-d H:i:s", mktime(0, 40, 0, date("m", $time_stamp), date("d", $time_stamp) + 1, date("Y", $time_stamp)));
     } else {
         $timeend = date("Y-m-d H:i:s", mktime(22, 40, 0, date("m", $time_stamp), date("d", $time_stamp), date("Y", $time_stamp)));
     }
     return $timeend;
 }