public static function getOffsetBySeconds($seconds)
    {
        $tmp    = abs($seconds);
        $hour   = (int) ($tmp / 3600);
        $minute = (int) (($tmp % 3600) / 60);

        $result = $seconds < 0 ? '-' : '+';
        $result.= ($hour < 10  ? '0' . $hour   : $hour) . ':';
        $result.= $minute < 10 ? '0' . $minute : $minute;

        return $result;
    }
public static function getOffsetBySeconds($seconds)
    {
        $tmp    = abs($seconds);
        $hour   = (int) ($tmp / 3600);
        $minute = (int) (($tmp % 3600) / 60);

        $result = $seconds < 0 ? '-' : '+';
        $result.= ($hour < 10  ? '0' . $hour   : $hour) . ':';
        $result.= $minute < 10 ? '0' . $minute : $minute;

        return $result;
    }
public static function getOffsetBySeconds ( $ seconds ) { $ tmp = abs ( $ seconds ) ; $ hour = ( int ) ( $ tmp / 3600 ) ; $ minute = ( int ) ( ( $ tmp % 3600 ) / 60 ) ; $ result = $ seconds < 0 ? '-' : '+' ; $ result .= ( $ hour < 10 ? '0' . $ hour : $ hour ) . ':' ; $ result .= $ minute < 10 ? '0' . $ minute : $ minute ; return $ result ; }
Returns the offset string based on the given seconds

@param integer $seconds
@return string
Returns the offset string based on the given seconds