Skip to content

Commit c629e7b

Browse files
committed
Monkey patch mins/secs into pdt units
1 parent 672a5f5 commit c629e7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/time.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ def __init__(self, argument):
3232
now = datetime.utcnow()
3333
self.dt = now + relativedelta(**data)
3434

35+
# Monkey patch mins and secs into the units
36+
units = pdt.pdtLocales['en_US'].units
37+
units['minutes'].append('mins')
38+
units['seconds'].append('secs')
3539

3640
class HumanTime:
3741
calendar = pdt.Calendar(version=pdt.VERSION_CONTEXT_STYLE)

0 commit comments

Comments
 (0)