Advertisement
raspberrypibeginners

now.py

May 28th, 2012
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. import datetime
  2. now = datetime.datetime.now()
  3. print "Now is", now.strftime("%d-%m-%Y"), "at", now.strftime("%H:%M")
  4. print "or, more precisely, %s" % now
  5. pi@raspberrypi:~/Desktop/python$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement