| Extracted from Pike v7.8 release 866 at 2018-02-09.

[Top]
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.