def parse_time(t):
  '''
  Parse a time value from a string, return a float in Unix epoch format.
  If no time can be parsed from the string, return None.
  '''
  try:
    return float(t)
  except __HOLE__:
    match = cal.parse(t)
    if match and match[1]:
      return time.mktime( match[0] )
  return None
dataset/ETHPy150Open agoragames/torus/torus/util.py/parse_time