Method

GLibDateTimeget_ymd

Declaration

void
g_date_time_get_ymd (
  GDateTime* datetime,
  gint* year,
  gint* month,
  gint* day
)

Description

Retrieves the Gregorian day, month, and year of a given GDateTime.

Available since:2.26

Parameters

year gint*
 

The return location for the gregorian year, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
month gint*
 

The return location for the month of the year, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
day gint*
 

The return location for the day of the month, or NULL.

 The argument will be set by the function.
 The argument can be NULL.