pike.hubbe.net

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

Method Calendar.TimeRange()->how_many()


Method how_many

int Calendar.TimeRange()->`/(object(TimeRange) with)
int Calendar.TimeRange()->how_many(object(TimeRange) with)

Description

This calculates how many instances of the given timerange has passed during the called timerange.

For instance, to figure out your age, create the timerange of your lifespan, and divide with the instance of a Year.


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