Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from datetime import *
- b = date(1980, 9, 22)
- a = date.today()
- c = datetime.now()
- print(c)
- print(b)
- print(a)
- print(type(a))
- print(a.month)
- print("Days past:", (a-b).days)
- import time
- # 1.1.1970
- print(time.time())
- now = time.time()
- d = date.fromtimestamp(now)
- print(d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement