DateTime.toUtc

Creates a new #GDateTime corresponding to the same instant in time as @datetime, but in UTC.

This call is equivalent to calling g_date_time_to_timezone() with the time zone returned by g_time_zone_new_utc().

class DateTime
toUtc
()

Return Value

Type: DateTime

the newly created #GDateTime which should be freed with g_date_time_unref(), or %NULL

Meta

Since

2.26