mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #18951 -- Formatting of microseconds.
Thanks olofom at gmail com for the report.
This commit is contained in:
parent
baa33cd8fa
commit
822cfce3df
3 changed files with 8 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue