- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
//перевод даты в timestamp
function strtotimestamp($time) {
$tmp = explode(' ', $time);
$date = explode('.', $tmp[0]);
$hours = explode(':',$tmp[1]);
$tmp = mktime($hours[0], $hours[1], 0, $date[1], $date[0], $date[2]);
return $tmp;
}