Definitions
Date and time references
-
datepoint - A period consists of a continuous portion of time between two positions in time called datepoints. This library assumes that the starting datepoint is included into the period. Conversely, the ending datepoint is excluded from the specified period. The starting datepoint is always less than or equal to the ending datepoint. The datepoints are defined as
DateTimeImmutableobjects. -
duration - The continuous portion of time between datepoints is called the duration. This duration is defined as a
DateIntervalobject. The duration cannot be negative.
Arguments
Unless stated otherwise:
- Whenever a datepoint is expected you can provide:
- a
DateTimeInterfaceimplementing object; - a string parsable by the
DateTimeconstructor.
- a
- Whenever a duration is expected you can provide:
- a
DateIntervalobject; - a string parsable by the
DateInterval::createFromDateStringmethod. - an integer interpreted as the interval expressed in seconds.
- a