title: Convert String to Time Python
body: <p>I have a time String like this：</p>
  
  <pre><code>07/01/2015-14:31:58.520
  </code></pre>
  
  <p>I use this command line to convert it:</p>
  
  <pre><code>import time
  timeStr = "07/01/2015-14:31:58.520"
  time.strptime(timeStr,'%d/%m/%y-%H:%M:%S.%f')
  </code></pre>
  
  <p>But this returns:</p>
  
  <blockquote>
    <p>ValueError: time data '07/01/2015-14:31:58.520' does not match format
    '%d/%m/%y-%H:%M:S.%f'</p>
  </blockquote>
  
  <p>My python version is 2.7.7</p>