history update (time settings)
This commit is contained in:
parent
159e1f990a
commit
e173393853
7 changed files with 122 additions and 81 deletions
10
src/util.py
10
src/util.py
|
@ -16,7 +16,15 @@ def curr_directory():
|
|||
|
||||
|
||||
def curr_time():
|
||||
return time.strftime("%H:%M")
|
||||
return time.strftime('%H:%M')
|
||||
|
||||
|
||||
def convert_time(t):
|
||||
sec = int(t) - time.timezone
|
||||
m, s = divmod(sec, 60)
|
||||
h, m = divmod(m, 60)
|
||||
d, h = divmod(h, 24)
|
||||
return '%02d:%02d' % (h, m)
|
||||
|
||||
|
||||
def get_style(style):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue