Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- teraz = time.localtime(time.time())
- ##print time.asctime(teraz)
- ##print time.strftime("%y/%m/%d %H:%M", teraz)
- ##print time.strftime("%a %b %d", teraz)
- ##print time.strftime("%c", teraz)
- ##print time.strftime("%I %p", teraz)
- ##print time.strftime("%Y-%m-%d %H:%M:%S %Z", teraz)
- #year, month, day, hour, minute, second, weekday, yearday, daylight = teraz
- #print "%04d-%02d-%02d" % (year, month, day)
- #print "%02d:%02d:%02d" % (hour, minute, second)
- #print ("MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN")[weekday], yearday
Advertisement
Add Comment
Please, Sign In to add comment