示例#1
0
function is_valid_time($Time)
{
    return is_valid_datetime($Time, 'H:i');
}
示例#2
0
文件: CI_Date.php 项目: asrii-gh/jk
 public function deduct_time_from_datetime($datetime, $seconds)
 {
     if (is_valid_datetime($datetime)) {
         $time = (int) $this->convert_datetime_to_epoch($datetime) - (int) $seconds;
         $time = $this->convert_epoch_to_datetime($time);
         return $time;
     }
     return false;
 }