Skip to content

Commit

Permalink
updating init
Browse files Browse the repository at this point in the history
  • Loading branch information
kgn committed Oct 28, 2010
1 parent 50d5be3 commit 32d024a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions Seconds.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__all__ = ['Seconds']

import re

k_min = 60
Expand Down Expand Up @@ -35,16 +37,13 @@ def Seconds(seconds, formatter, displayZero=False):
%H hr %M min %S sec
Pluralization can be specified by adding the plural characters in parenthesis
at the end of the string.
Pluralization can be specified by adding the plural characters in parenthesis at the end of the string.
%D day(s) %H hour(s) %M minute(s) %S second(s)
Not every element has to be included in the formatter string, if a larger element is
excluded the smaller element will collect the over flow.
Not every element has to be included in the formatter string, if a larger element is excluded the smaller element will collect the over flow.
26 hours, instead of 1 day 2 hours
By default 0 values are omitted, however passing True to displayZero will include
them in the result.
By default 0 values are omitted, however passing True to displayZero will include them in the result.
'''
values = []
replace = {
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from Runtime import *
from Seconds import *

0 comments on commit 32d024a

Please sign in to comment.