Posted by Nick Beam on Mon 26 Nov 07:52
report abuse | download | new post
- // replacement for strtotime(), doesn't work on 1&1
- function parse_datetime($datetime) {
- // 2007-10-18T00:56:00.001-04:00
- // int mktime ( [int hour [, int minute [, int second [, int month [, int day [, int year [, int is_dst]]]]]]] )
- preg_match("/([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])\.([0-9]{3})\-([0-5][0-9])\:([0-5][0-9])/", $halves[1], $time);
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.