Extracted from Pike v7.4 release 35 at 2003-12-09.
pike.ida.liu.se
[Top]
predef::
Calendar_I
Calendar_I._TimeUnit

Method Calendar_I._TimeUnit()->next()


Method next

object next()
object prev()
object `+(int n)
object `-(int n)
object `-(object x)

Description

next() and prev() give the logical next and previous object. The `+() operator gives that logical relative object, ie

my_day+14
gives 14 days ahead. `-() works the same way, but can also take an object of the same type and give the difference as an integer.