Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Calendar_I
Calendar_I._TimeUnit

Method Calendar_I._TimeUnit()->`+()


Method `+

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.