Logo Search packages:      
Sourcecode: libical version File versions

struct icaltimetype icaltime_normalize ( const struct icaltimetype  tt  )  [read]

Normalize the icaltime, so that all fields are within the normal range.

Reset all of the time components to be in their normal ranges. For instance, given a time with minutes=70, the minutes will be reduces to 10, and the hour incremented. This allows the caller to do arithmetic on times without worrying about overflow or underflow.

Implementation note: we call icaltime_adjust() with no adjustment.

Definition at line 482 of file icaltime.c.

      struct icaltimetype ret = tt;
      icaltime_adjust(&ret, 0, 0, 0, 0);
      return ret;

Generated by  Doxygen 1.6.0   Back to index