Adresa
:
[go:
nahoru
,
domu
]
Sign in
android
/
platform
/
frameworks
/
support
/
534ea4547d70a5a459833d5425f4fbbfa527a6a2
/
.
/
development
/
ts.py
blob: f4c54d9ae3e683dff35be818bfc80ff04d885571 [
file
] [
log
] [
blame
]
#!/usr/bin/python3
# This program reads stdin, prepends the current time to each line, and prints the result
from
datetime
import
datetime
import
sys
for
line
in
sys
.
stdin
:
now
=
datetime
.
now
()
print
(
str
(
now
)
+
" "
+
line
,
end
=
""
)