Integrated David Beitey's code (https://bitbucket.org/davidjb)
https://bitbucket.org/russellballestrini/ago/pull-request/1/add-support-for-future-dates-minor-readme/
This commit is contained in:
parent
87afe070a3
commit
89d73aa9dd
2 changed files with 18 additions and 13 deletions
|
|
@ -34,12 +34,12 @@ def test_output():
|
|||
|
||||
print '\nTesting past:\n'
|
||||
print delta2dict( PAST_DELTA )
|
||||
print 'Commented ' + delta2human( PAST_DELTA, 3 ) + ' ago'
|
||||
print 'Commented ' + human( PAST ) + ' ago'
|
||||
print 'Commented ' + delta2human( PAST_DELTA, 3 )
|
||||
print 'Commented ' + human( PAST )
|
||||
|
||||
print '\nTesting future:\n'
|
||||
print delta2dict( FUTURE_DELTA )
|
||||
print 'Shutdown in ' + delta2human( FUTURE_DELTA, 3 )
|
||||
print 'Shutdown in ' + human( FUTURE )
|
||||
print 'Shutdown ' + delta2human( FUTURE_DELTA, 3 )
|
||||
print 'Shutdown ' + human( FUTURE )
|
||||
print ''
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue