Logo Search packages:      
Sourcecode: libical version File versions  Download package

struct icaltimetype icaltime_set_timezone ( struct icaltimetype *  t,
const icaltimezone *  zone 
) [read]

Set the timezone.

Force the icaltime to be interpreted relative to another timezone. If you need to do timezone conversion, applying offset adjustments, then you should use icaltime_convert_to_timezone instead.

Definition at line 1098 of file icaltime.c.

References icaltimezone_get_utc_timezone().

                                                                        {

      /* If it's a date do nothing */
      if (t->is_date) {
            return *t;
      }

      if (t->zone == zone) {
            return *t;
      }

      t->zone = zone;
      if (zone == icaltimezone_get_utc_timezone()) {
            t->is_utc = 1;
      } else {
            t->is_utc = 0;
      }

      return *t;
}


Generated by  Doxygen 1.6.0   Back to index