Method

GLibDateset_year

Declaration

void
g_date_set_year (
  GDate* date,
  GDateYear year
)

Description

Sets the year for a GDate. If the resulting day-month-year triplet is invalid, the date will be invalid.

Parameters

year GDateYear
 

Year to set.