Method

GLibDateTimeget_day_of_week

Declaration

gint
g_date_time_get_day_of_week (
  GDateTime* datetime
)

Description

Retrieves the ISO 8601 day of the week on which datetime falls (1 is Monday, 2 is Tuesday… 7 is Sunday).

Available since:2.26

Return value

Returns: gint
 

The day of the week.