changed ago.py
This commit is contained in:
parent
c4a62c9690
commit
93c6b1c572
1 changed files with 1 additions and 1 deletions
2
ago.py
2
ago.py
|
|
@ -56,7 +56,7 @@ def human(subject, precision=2, past_tense='{} ago', future_tense='in {}', abbre
|
|||
if count >= precision: break # met precision
|
||||
if d[ unit ] == 0: continue # skip 0's
|
||||
if abbreviate:
|
||||
abr = 'ms' if unit == 'microsecond' else unit[0]
|
||||
abr = 'mu' if unit == 'microsecond' else unit[0]
|
||||
hlist.append('{}{}'.format(d[unit], abr))
|
||||
else:
|
||||
s = '' if d[ unit ] == 1 else 's' # handle plurals
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue