Gst.DateTime.new_y

function new_y(year:Number):Gst.DateTime {
    // Gjs wrapper for gst_date_time_new_y()
}

Creates a new Gst.DateTime using the date and times in the gregorian calendar in the local timezone.

year should be from 1 to 9999.

Free-function: gst_date_time_unref

year

the gregorian year

Returns

the newly created Gst.DateTime