Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: Python | Size: 0.15 KB | Hits: 25 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. import time
  2. local_time = time.localtime(time.time())
  3. s = time.strftime("%a %d %b, %Y %H:%M:%S (%Z)", local_time)
  4. print(s)
  5. print(s.encode('utf-8'))