coupon++
This commit is contained in:
parent
2cab333fd6
commit
d0db1ef9ec
1 changed files with 8 additions and 1 deletions
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue