Function

GLibDateTimenew_local

Declaration

GDateTime*
g_date_time_new_local (
  gint year,
  gint month,
  gint day,
  gint hour,
  gint minute,
  gdouble seconds
)

Description

Creates a new GDateTime corresponding to the given date and time in the local time zone.

This call is equivalent to calling g_date_time_new() with the time zone returned by g_time_zone_new_local().

Available since:2.26

Parameters

year gint
 

The year component of the date.

month gint
 

The month component of the date.

day gint
 

The day component of the date.

hour gint
 

The hour component of the date.

minute gint
 

The minute component of the date.

seconds gdouble
 

The number of seconds past the minute.

Return value

Returns: GDateTime
 

A GDateTime, or NULL.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.