Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import date
- import time
- import datetime
- import timedelta
- today = datetime.datetime.now()
- dict1 = {
- "name": "player_1"
- "date": "27/12/2020"
- }
- age = str(datetime.now() - timedelta(days=27, weeks=0, months=11, year=0)) #will always calculate the day the script is ran on, minus the date the account was made
- print(dict1["name"])
- print(dict1["date"])
- print(age)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement