Method

GLibDateTimeget_year

Declaration

gint
g_date_time_get_year (
  GDateTime* datetime
)

Description

Retrieves the year represented by datetime in the Gregorian calendar.

Available since:2.26

Return value

Returns: gint
 

The year represented by datetime.