- 1
- 2
- 3
- 4
- 5
- 6
static public function dateDb2Human($dbDate) {
$date = strptime(explode('.', $dbDate)[0], '%Y-%m-%d %H:%M:%S');
return $date['tm_mday'].'.'.$date['tm_mon'].'.'.(1900+$date['tm_year']).' ('.($date['tm_hour'] < 10 ? '0' : '').$date['tm_hour'].':'.($date['tm_min'] < 10 ? '0' : '').$date['tm_min'].')';
} //static public function dateDb2Human($dbDate)
Комментарии (0) RSS
Добавить комментарий