repo.or.cz
/
nil.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added new symlink functions
[nil.git]
/
nil
/
time.py
blob
e6121b89adc0ca7b1f8d19a4c0fcaa08a9d316e0
1
from
__future__
import
absolute_import
2
3
import
time
4
5
def
timestamp
():
6
time_data
=
time
.
localtime
()
7
output
=
'
%d-%0
2d-
%0
2d
%0
2d:
%0
2d:
%0
2d'
% (
time_data
.
tm_year
,
time_data
.
tm_mon
,
time_data
.
tm_mday
,
time_data
.
tm_hour
,
time_data
.
tm_min
,
time_data
.
tm_sec
)
8
return
output