YearMonth Class

YearMonth Class — A month on the YearPage.

Members

bool has_entries

If this is false, you probably don't want to display this month.

int month

The number of the month

Date next_date

Date of next month, with day of zero, or null if none.

string next_url

(Read-only) A url to link to in order to view the next month.

Date prev_date

Date of previous month, with day of zero, or null if none.

string prev_url

(Read-only) A url to link to in order to view the previous month.

string url

(Read-only) A url to link to in order to view this month.

YearWeek[] weeks

An array of the weeks of the month (for ease of building a row-per-week calendar)

int year

The number of the year

Methods

month_format() : string

Returns month formatted long (February 1980) (See also: Section 1.4, “Date Formats”)

month_format(string fmt) : string

Returns time formatted as indicated by $fmt, or 'long' if blank. (See also: Section 1.4, “Date Formats”)