- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
function dbtime2unix($dt)
{
$year = substr($dt,0,4);
$month = substr($dt,5,2);
$day = substr($dt,8,2);
$hour = substr($dt,11,2);
$minute = substr($dt,14,2);
$sec = substr($dt,17,2);
return @mktime($hour,$minute,$sec,$month,$day,$year);
}
function timestamp2unix($dt)
{
$year = substr($dt,0,4);
$month = substr($dt,4,2);
$day = substr($dt,6,2);
$hour = substr($dt,8,2);
$minute = substr($dt,10,2);
$sec = substr($dt,12,2);
return @mktime($hour,$minute,$sec,$month,$day,$year);
}