Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import datetime
- >>> bugun = datetime.date.today()
- >>> print(bugun)
- 2018-02-12
- >>> simdi = datetime.datetime.now()
- >>> print(simdi)
- 2018-02-12 21:27:46.880498
- >>> milenyum = datetime.datetime(2000, 1, 1, 0, 0, 0)
- >>> print("Milenyumdan bu zamana geçen süre: " + str(datetime.datetime(bugun.year, bugun.month, bugun.day) - milenyum))
- Milenyumdan bu zamana geçen süre: 6617 days, 0:00:00
- >>>
Add Comment
Please, Sign In to add comment