title: working with high precision timestamps in python
body: <p>Hey I am working in python with datetime and I am wondering what the best way to parse this timestamp is.</p>
  
  <p>The timestamps are ISO standard, here is an example "2010-06-19T08:17:14.078685237Z"</p>
  
  <p>Now so far I have used </p>
  
  <pre><code>time = datetime.datetime.strptime(timestamp.split(".")[0], "%Y-%m-%dT%H:%M:%S")
  precisetime = time + datetime.timedelta(0,float("." + timestamp[:-1].split(".")[0]))
  </code></pre>
  
  <p>This kind of works, but I feel like there should be a more streamlined way (I am very new to python, and I am sure I am doing this like an ass). Also, I have nanoseconds in my timestamp, but only microseconds in my datetime object, is there a better module to work with? I need to be able to do operations on the time such as subtracting times and putting them in the scheduler. </p>
  
  <p>Any better way to go about this?</p>