Jeff Gaston | 3fa62a8 | 2023-10-25 15:00:25 -0400 | [diff] [blame] | 1 | #!/usr/bin/python3 |
2 | # This program reads stdin, prepends the current time to each line, and prints the result | ||||
3 | |||||
4 | from datetime import datetime | ||||
5 | import sys | ||||
6 | |||||
7 | for line in sys.stdin: | ||||
8 | now = datetime.now() | ||||
9 | print(str(now) + " " + line, end="") |