code: def _resolve_time(value):
    '''
    Resolve the time in seconds of a configuration value.
    '''
    if value is None or isinstance(value,(int,long)):
      return value
  
    if NUMBER_TIME.match(value):
      return long(value)
  
    simple = SIMPLE_TIME.match(value)
    if SIMPLE_TIME.match(value):
      multiplier = long( simple.groups()[0] )
      constant = SIMPLE_TIMES[ simple.groups()[1] ]
      return multiplier * constant
  
    if value in GREGORIAN_TIMES:
      return value
  
    raise ValueError('Unsupported time format %s'%valuef _resolve_time(value):
    '''
    Resolve the time in seconds of a configuration value.
    '''
    if value is None or isinstance(value,(int,long)):
      return value
  
    if NUMBER_TIME.match(value):
      return long(value)
  
    simple = SIMPLE_TIME.match(value)
    if SIMPLE_TIME.match(value):
      multiplier = long( simple.groups()[0] )
      constant = SIMPLE_TIMES[ simple.groups()[1] ]
      return multiplier * constant
  
    if value in GREGORIAN_TIMES:
      return value
  
    raise ValueError('Unsupported time format %s'%value)
docs: Resolve the time in seconds of a configuration value.