Fixed #18951 -- Formatting of microseconds.

Thanks olofom at gmail com for the report.
This commit is contained in:
Aymeric Augustin 2012-09-22 12:02:21 +02:00
parent baa33cd8fa
commit 822cfce3df
3 changed files with 8 additions and 3 deletions

View file

@ -110,8 +110,8 @@ class TimeFormat(Formatter):
return '%02d' % self.data.second
def u(self):
"Microseconds"
return self.data.microsecond
"Microseconds; i.e. '000000' to '999999'"
return '%06d' %self.data.microsecond
class DateFormat(TimeFormat):