def get_offset(name):
 if (name not in _dont_uppercase):
  name = name.upper()
  name = _lite_rule_alias.get(name, name)
  name = _lite_rule_alias.get(name.lower(), name)
 else:
  name = _lite_rule_alias.get(name, name)
 if (name not in _offset_map):
  try:
   split = name.split('-')
   klass = prefix_mapping[split[0]]
   offset = klass._from_name(*split[1:])
  except (ValueError, TypeError, KeyError):
   raise ValueError(_INVALID_FREQ_ERROR.format(name))
  _offset_map[name] = offset
 return _offset_map[name].copy()

def get_offset ( name ) : if ( name not in _dont_uppercase ) : name = name . upper ( ) name = _lite_rule_alias . get ( name , name ) name = _lite_rule_alias . get ( name . lower ( ) , name ) else : name = _lite_rule_alias . get ( name , name ) if ( name not in _offset_map ) : try : split = name . split ( '-' ) klass = prefix_mapping [ split [ 0 ] ] offset = klass . _from_name ( * split [ 1 : ] ) except ( ValueError , TypeError , KeyError ) : raise ValueError ( _INVALID_FREQ_ERROR . format ( name ) ) _offset_map [ name ] = offset return _offset_map [ name ] . copy ( )
displays the current time zone offset :return: the current time zone offset :rtype: str cli example: .