GLib.DateTime.prototype.ref

function ref(): GLib.DateTime {
    // Gjs wrapper for g_date_time_ref()
}
  

Atomically increments the reference count of datetime by one.

Since 2.26

Returns

the GLib.DateTime with the reference count increased