code: def iso8601time(time_tuple):
      
      if time_tuple:
          return time.strftime("%Y-%m-%dT%H:%M:%SZ", time_tuple)
      else:
          return time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime())
docs: Format time_tuple as a ISO8601 time string.
  
      :param time_tuple: Either None, to use the current time, or a tuple tuple.