title: Using %f with strftime() in Python to get microseconds
body: <p>I'm trying to use strftime() to microsecond precision, which seems possible using %f (as stated <a href="http://docs.python.org/library/datetime.html#strftime-strptime-behavior" rel="noreferrer">here</a>). However when I try the following code:</p>
  
  <pre><code>import time
  import strftime from time
  
  print strftime("%H:%M:%S.%f")
  </code></pre>
  
  <p>...I get the hour, the minutes and the seconds, but %f prints as %f, with no sign of the microseconds. I'm running Python 2.6.5 on Ubuntu, so it should be fine and %f should be supported (it's supported for 2.6 and above, as far as I know.)</p>