Logo Search packages:      
Sourcecode: ardour version File versions  Download package

guint8 Glib::Date::get_sunday_weeks_in_year ( Date::Year  year  )  [static]

Returns the number of weeks in the year, where weeks are taken to start on Sunday. Will be 52 or 53. (Years always have 52 7-day periods, plus 1 or 2 extra days depending on whether it's a leap year. This function is basically telling you how many Sundays are in the year, i.e. there are 53 Sundays if one of the extra days happens to be a Sunday.)

Parameters:
year Year to count weeks in.
Returns:
Number of weeks.

Definition at line 256 of file date.cc.

{
  return g_date_get_sunday_weeks_in_year(year);
}


Generated by  Doxygen 1.6.0   Back to index