from datetime import datetime now = datetime.now() print('%02d:%02d:%02d' % (now.hour, now.minute, now.second))
To embed this project on your website, copy the following code and paste it into your website's HTML: