1. Matthew Schinckel
  2. django-timedelta-field

Commits

Matthew Schinckel  committed 01cd08c

Remove microseconds, not yet implemented.

  • Participants
  • Parent commits 225c5d6
  • Branches default

Comments (0)

Files changed (1)

File timedelta/helpers.py

View file
  • Ignore whitespace
 
 from django.utils import six
 
-STRFDATETIME = re.compile('([dgGhHisu])')
+STRFDATETIME = re.compile('([dgGhHis])')
 STRFDATETIME_REPL = lambda x: '%%(%s)s' % x.group()
 
 def nice_repr(timedelta, display="long", sep=", "):
     else:
         # Use django template-style formatting.
         # Valid values are:
-        # d,g,G,h,H,i,s,u
+        # d,g,G,h,H,i,s
         return STRFDATETIME.sub(STRFDATETIME_REPL, display) % {
             'd': days,
             'g': hours,