pike.hubbe.net

[Top]
Calendar
Calendar.TimeRange
previousCalendar.TimeRange()->next() Calendar.TimeRange()->overlaps()next

Method Calendar.TimeRange()->offset_to()


Method offset_to

int Calendar.TimeRange()->offset_to(object(TimeRange) x)

Description

Calculates offset to x; this compares two timeranges and gives the integer offset between the two starting points.

This is true for suitable a and b: a+a->offset_to(b)==b

By suitable means that a and b are of the same type and size. This is obviously true only if a+n has b as a possible result for any n.


Extracted from Pike v7.3 release 11 at 2001-11-03.