Mods
This commit is contained in:
parent
9e224f7a89
commit
7560718473
3
main.py
3
main.py
|
@ -71,8 +71,9 @@ def random_int(min_val, max_val):
|
|||
|
||||
|
||||
def random_date():
|
||||
one_hundred = 36525
|
||||
current_date = datetime.now()
|
||||
end_date = current_date + timedelta(days=36525) # 365 days * 100 years
|
||||
end_date = current_date + timedelta(days=(one_hundred // 2))
|
||||
random_days = random.randint(0, (end_date - current_date).days)
|
||||
random_date = current_date + timedelta(days=random_days)
|
||||
return random_date.strftime("%d %b %Y")
|
||||
|
|
Loading…
Reference in New Issue