Function

GLibDatevalid_year

Declaration

gboolean
g_date_valid_year (
  GDateYear year
)

Description

Returns TRUE if the year is valid. Any year greater than 0 is valid, though there is a 16-bit limit to what GDate will understand.

Parameters

year

Type: GDateYear

Year.

Return value

Type: gboolean

TRUE if the year is valid.