No subject


Wed Jan 4 10:30:06 CET 2012


Returns the length of the duration in the units (any of those that can be
passed to new) given as arguments. All lengths are integral, but may be
negative. Smaller units are computed from what remains after taking away the
larger units given, so for example:

  $dur->in_units( 'years' );            # 2
  $dur->in_units( 'months' );           # 27
  $dur->in_units( 'years', 'months' );  # (2, 3)
  $dur->in_units( 'weeks', 'days' );    # (0, 0) !

The last example demonstrates that there *will not be any conversion between
units which don't have a fixed conversion rate*.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list