title: Thread-safe equivalent to python's time.strptime()?
body: <p>Something I wrote throws a lot of <code>AttributeError</code> exceptions when using time.strptime() inside a thread. This only seems to happen on Windows (not on Linux) but whatever- upon a'Googling, it seems that time.strptime() isn't considered thread-safe.</p>
  
  <p>Is there a better way to create a datetime object from a string? Current code looks like:</p>
  
  <pre><code>val = DateFromTicks(mktime(strptime(val, '%B %d, %Y')))
  </code></pre>
  
  <p>But, that yields the exceptions as it's run inside a thread.</p>
  
  <p>Thanks!</p>