coupon++
This commit is contained in:
parent
2cab333fd6
commit
d0db1ef9ec
|
@ -2,8 +2,15 @@
|
||||||
|
|
||||||
import random
|
import random
|
||||||
import ipaddress
|
import ipaddress
|
||||||
|
import datetime
|
||||||
|
|
||||||
net = ipaddress.IPv6Network("2a0a:e5c0:11:2::/64")
|
net = ipaddress.IPv6Network("2a0a:e5c0:11:2::/64")
|
||||||
offset = random.randint(0, 2**64)
|
offset = random.randint(0, 2**64)
|
||||||
coupon = net[offset]
|
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 New Issue