Method

GLibDateTimeget_year

since: 2.26

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

Type: gint

The year represented by datetime.