Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import datetime
- now = datetime.datetime.now()
- print "Now is", now.strftime("%d-%m-%Y"), "at", now.strftime("%H:%M")
- print "or, more precisely, %s" % now
- pi@raspberrypi:~/Desktop/python$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement