function _ical_calcOffset in Event 5
1 call to _ical_calcOffset()
- _ical_calcTime in ./
ical.inc
File
- ./
ical.inc, line 347 - API for event import/export in iCalendar format as outlined in Internet Calendaring and Scheduling Core Object Specification http://www.ietf.org/rfc/rfc2445.txt
Code
function _ical_calcOffset($offset_str) {
$sign = substr($offset_str, 0, 1);
$hours = substr($offset_str, 1, 2);
$mins = substr($offset_str, 3, 2);
$secs = (int) $hours * 3600 + (int) $mins * 60;
if ($sign == '-') {
$secs = 0 - $secs;
}
return $secs;
}