function cmfcCalendarV1Thai::strToTimestamp in Calendar Systems 8
Same name and namespace in other branches
- 8.2 calendar/v1/calendarSystems/thai.class.inc.php \cmfcCalendarV1Thai::strToTimestamp()
- 6 calendar/v1/calendarSystems/thai.class.inc.php \cmfcCalendarV1Thai::strToTimestamp()
- 7 calendar/v1/calendarSystems/thai.class.inc.php \cmfcCalendarV1Thai::strToTimestamp()
- 7.2 calendar/v1/calendarSystems/thai.class.inc.php \cmfcCalendarV1Thai::strToTimestamp()
Overrides cmfcCalendarV1::strToTimestamp
File
- calendar/
v1/ calendarSystems/ thai.class.inc.php, line 66
Class
Code
function strToTimestamp($string) {
$date = explode(' ', $string);
$date_parts = explode('-', $date[0]);
$date_parts[0] = $date_parts[0] - 543;
$date[0] = implode('-', $date_parts);
$date = implode(' ', $date);
return strtotime($date);
}