function date_datetime2timestamp in Date 6
Same name and namespace in other branches
- 5.2 date_php4/date_php4.inc \date_datetime2timestamp()
- 6.2 date_php4/date_php4.inc \date_datetime2timestamp()
Create a timestamp from a datetime value.
Can't use date_convert() to turn datetime to unix within the PHP 4 emulation because it creates endless loops.
1 call to date_datetime2timestamp()
- date_php4.inc in date_php4/
date_php4.inc
File
- date_php4/
date_php4.inc, line 594
Code
function date_datetime2timestamp($datetime) {
preg_match(DATE_REGEX_LOOSE, $datetime, $regs);
return date_gmmktime($regs[5], $regs[6], $regs[7], $regs[2], $regs[3], $regs[1]);
}