year to count weeks in
the day which is considered the first day of the week (for example, this would be GLib.DateWeekday.SUNDAY in US locales, GLib.DateWeekday.MONDAY in British locales, and GLib.DateWeekday.SATURDAY in Egyptian locales
the number of weeks in year
Calculates the number of weeks in the year.
The result depends on which day is considered the first day of the week, which varies by locale.
first_day_of_weekmust be valid.The result will be either 52 or 53. Years always have 52 seven-day periods, plus one or two extra days depending on whether it’s a leap year. This function effectively calculates how many
first_day_of_weekdays there are in the year.