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

Method Calendar.YMD.Week()->day()


Method day

Day day()
Day day(int n)
Day day(string name)

Description

The Week type overloads the day() method, so it is possible to get a specified weekday by string:

week->day("sunday")

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

Note

the weekday-from-string routine is language dependent.