From a3c92d930522f0cd6e5d4d3b7190e6209fd92a75 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 10 Nov 2007 01:56:13 +0000 Subject: [PATCH] Add a footnote explain leap years svn path=/trunk/; revision=5854 --- docs/reference/ChangeLog | 3 +++ docs/reference/glib/tmpl/date.sgml | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 7f63a2594..f2ba34f83 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,5 +1,8 @@ 2007-11-09 Matthias Clasen + * glib/tmpl/date.sgml: Add a footnote explaining leap years. + (#491982, Areg Beketovski) + * glib/tmpl/date.sgml: Improve g_date_clamp docs. (#491970, Areg Beketovski) diff --git a/docs/reference/glib/tmpl/date.sgml b/docs/reference/glib/tmpl/date.sgml index f7a6dff17..3af4e9d38 100644 --- a/docs/reference/glib/tmpl/date.sgml +++ b/docs/reference/glib/tmpl/date.sgml @@ -617,7 +617,10 @@ Returns %TRUE if the date is the last day of the month. The date must be valid. -Returns %TRUE if the year is a leap year. +Returns %TRUE if the year is a leap year. +For the purposes of this function, leap year is every year divisible by +4 unless that year is divisible by 100. If it is divisible by 100 it would +be a leap year only if that year is also divisible by 400. @year: year to check