Method Calendar.TimeRanges.TimeRange()->`/()
- Method `/
array
(TimeRange
) res =Calendar.TimeRanges.TimeRange()
/n
array
(TimeRange
) split(int
|float
n
,object
void|TimeRangewith
)- Description
-
This divides the called timerange into n pieces. The returned timerange type is not necessarily of the same type as the called one. If the optional timerange is specified then the resulting timeranges will be multiples of that range (except for the last one).
known bugs: These are currently not defined for
supertimeranges
.
- Method `/
res =int
Calendar.TimeRanges.TimeRange()
/with
how_many(int
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
.