Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Python tick-tock
#!/usr/bin/env python
from time import sleep
from datetime import datetime
while True:
print(datetime.now())
sleep(1)
@sinewalker

This comment has been minimized.

Copy link
Owner Author

@sinewalker sinewalker commented Jul 13, 2018

prints the time every second. test python code for a simple systemd unit file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment