Function
GLibDateTimenew_utc
since: 2.26
Declaration [src]
GDateTime*
g_date_time_new_utc (
gint year,
gint month,
gint day,
gint hour,
gint minute,
gdouble seconds
)
Description [src]
Creates a new GDateTime corresponding to the given date and time in
UTC.
This call is equivalent to calling g_date_time_new() with the time
zone returned by g_time_zone_new_utc().
Available since: 2.26
Parameters
year-
Type:
gintThe year component of the date.
month-
Type:
gintThe month component of the date.
day-
Type:
gintThe day component of the date.
hour-
Type:
gintThe hour component of the date.
minute-
Type:
gintThe minute component of the date.
seconds-
Type:
gdoubleThe number of seconds past the minute.
Return value
Type: 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. |