public static function getCurrentHour($inUTC = false)
    {
        $tz = $inUTC ? 'UTC' : null;

        return (int) static::now($tz)->format('G');
    }
public static function getCurrentHour($inUTC = false)
    {
        $tz = $inUTC ? 'UTC' : null;

        return (int) static::now($tz)->format('G');
    }
public static function getCurrentHour ( $ inUTC = false ) { $ tz = $ inUTC ? 'UTC' : null ; return ( int ) static :: now ( $ tz ) -> format ( 'G' ) ; }
Get current hour.

@param bool $inUTC

@return int
Get current hour .