pike.hubbe.net

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

Method Calendar.TimeRange()->`/()


Method `/

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.


Method `/

array(object(TimeRange)) Calendar.TimeRange()->`/(int n)
array(object(TimeRange)) Calendar.TimeRange()->split(int n)

Description

This divides the called timerange into n pieces. The returned timerange type is not neccesarily of the same type as the called one.

known bugs: These are currently not defined for supertimeranges.


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