You are here

function _ical_calc_time in Event 5.2

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

File

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