Omar Ismail | 95b79e7 | 2024-09-11 09:47:52 -0400 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
Jeff Gaston | 3fa62a8 | 2023-10-25 15:00:25 -0400 | [diff] [blame] | 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="") |