Branch: Tag:

2000-08-14

2000-08-14 12:35:59 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

added ->offset_to

Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.5

3622:      </doc>   </docgroup> + <docgroup homogen-name='offset_to' homogen-type='method'> + <method name='offset_to'> +  <returntype> +  <object>int </object></returntype> +  <arguments><argument name='x'><type> +  <object resolved='predef::Calendar.TimeRange'>TimeRange</object></type></argument> +  +  </arguments> + </method><doc> + <text> + <p>Calculates offset to x; this compares + two timeranges and gives the integer offset + between the two starting points.</p> +  + <p>This is true for suitable a and b: + <tt>a+a-&gt;offset_to(b)==b</tt></p> +  + <p>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.</p> + </text> +  + </doc> + </docgroup>   <docgroup homogen-name='place' homogen-type='method'>   <method name='place'>    <returntype>