from datetime import datetime def foo(): print(datetime.now())