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