repo.or.cz
/
mygpo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
apply new navigation to publisher pages
[mygpo.git]
/
mygpo
/
web
/
templatetags
/
time.py
blob
3e178d59e70789b13d55bfcb4916cfd70e211200
1
from
django
import
template
2
from
django
.
utils
.
translation
import
ugettext
as
_
3
from
datetime
import
time
4
5
register
=
template
.
Library
()
6
7
@register
.
filter
8
def
sec_to_time
(
sec
):
9
s
=
int
(
sec
)
10
return
time
(
s
/
60
/
60
, (
s
/
60
) %
60
,
s
%
60
)
11