function is_valid_time($Time) { return is_valid_datetime($Time, 'H:i'); }
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; }