Pike v8.1 release 6

Method Calendar.TimeRanges.TimeRange()->how_many()


Method how_many

int res = Calendar.TimeRanges.TimeRange() / with
int how_many(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.