Function

GLibDatevalid_dmy

Declaration

gboolean
g_date_valid_dmy (
  GDateDay day,
  GDateMonth month,
  GDateYear year
)

Description

Returns TRUE if the day-month-year triplet forms a valid, existing day in the range of days GDate understands (Year 1 or later, no more than a few thousand years in the future).

Parameters

day GDateDay
 

Day.

month GDateMonth
 

Month.

year GDateYear
 

Year.

Return value

Returns: gboolean
 

TRUE if the date is a valid one.