GLib.DateTime.prototype.get_hour

function get_hour(): Number(gint) {
    // Gjs wrapper for g_date_time_get_hour()
}
  

Retrieves the hour of the day represented by datetime

Since 2.26

Returns

the hour of the day