Details

[Home]

Issue of the Standard # D0012

Brief

The documentation of the interface "g_date_is_leap_year" is incomplete

Detailed Description

Documentation of the interface g_date_is_leap_year does not mention, which year is considered to be a leap year.

Problem location(s) in the standard

Linux Standard Base Desktop Specification 3.1, Chapter 12. Libraries, 12.2 Interfaces for libglib-2.0; http://www.gtk.org/api/2.6/glib/glib-Date-and-Time-Functions.html#g-date-is-leap-year

Possible solutions

Adding the text: "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." after the sentence "Returning TRUE if the year is a leap year."

Accepted

Gnome Bugzilla 491954

Status

Fixed in gtk-glib - 2.16

[Home]