Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
7.6::
Calendar
Calendar.YMD
Calendar.YMD.Year

Method Calendar.YMD.Year()->week()


Method week

Week week()
Week week(int n)
Week week(string name)

Description

The Year type overloads the week() method, so it is possible to get a specified week by name:

year->week("17") year->week("w17")

The integer and no argument behavior is inherited from YMD ().

This is useful, since the first week of a year not always (about half the years, in the ISO calendar) is numbered '1'.