This commit is contained in:
Nico Schottelius 2021-12-14 16:15:44 +01:00
parent 2cab333fd6
commit d0db1ef9ec
1 changed files with 8 additions and 1 deletions

View File

@ -2,8 +2,15 @@
import random
import ipaddress
import datetime
net = ipaddress.IPv6Network("2a0a:e5c0:11:2::/64")
offset = random.randint(0, 2**64)
coupon = net[offset]
print(coupon)
today = datetime.datetime.now()
today_in_2y = today + datetime.timedelta(days=365*2)
print(f"Coupon ID : {coupon}")
print(f"Today : {today}")
print(f"Today in 2 years: {today_in_2y}")