src/Stdlib/Util.php
public static function formatGmtOffset($offset) {
        $hours = intval($offset / 3600);
        $minutes = abs(intval($offset % 3600 / 60));
        return 'GMT' . ($offset ? sprintf('%+03d:%02d', $hours, $minutes) : '');
    }
public static function formatGmtOffset($offset) {
        $hours = intval($offset / 3600);
        $minutes = abs(intval($offset % 3600 / 60));
        return 'GMT' . ($offset ? sprintf('%+03d:%02d', $hours, $minutes) : '');
    }
public static function formatGmtOffset ( $ offset ) { $ hours = intval ( $ offset / 3600 ) ; $ minutes = abs ( intval ( $ offset % 3600 / 60 ) ) ; return 'GMT' . ( $ offset ? sprintf ( '%+03d:%02d' , $ hours , $ minutes ) : '' ) ; }
Formats GMT offset to string
@param string $offset
@return string
Formats GMT offset to string