1#!/usr/bin/env python3 2# This program reads stdin, prepends the current time to each line, and prints the result 3 4from datetime import datetime 5import sys 6 7for line in sys.stdin: 8 now = datetime.now() 9 print(str(now) + " " + line, end="") 10