Sign in
android
/
platform
/
frameworks
/
support
/
637b5a27154ab2a8731d9c21d1bfbf598e2317f9
/
.
/
development
/
ts.py
blob: 95e8faf12bac404f481afb2d6c50285bdafb4863 [
file
] [
log
] [
blame
]
#!/usr/bin/env 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
=
""
)