You are here

function _ical_calcTime in Event 5

1 call to _ical_calcTime()
ical_import in ./ical.inc
Given the location of a valide iCalendar file, will return an array of event information

File

./ical.inc, line 338
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_calcTime($have, $want, $time) {
  if ($have == 'none' || $want == 'none') {
    return $time;
  }
  $have_secs = _ical_calcOffset($have);
  $want_secs = _ical_calcOffset($want);
  $diff = $want_secs - $have_secs;
  $time += $diff;
  return $time;
}