Skip to content

Instantly share code, notes, and snippets.

@bunseokbot
Last active July 30, 2017 01:05
Show Gist options
  • Save bunseokbot/5a03487470951dc39dff9ddbf8429649 to your computer and use it in GitHub Desktop.
Save bunseokbot/5a03487470951dc39dff9ddbf8429649 to your computer and use it in GitHub Desktop.
내 생일 기념 타임스탬프는 언제쯤 올까..
from datetime import datetime
base = 100000000
timestamp = base
# my birthday
month = 2
day = 15
while True:
d = datetime.utcfromtimestamp(timestamp)
if d.month == month and d.day == day:
print("[MATCH] Congrats! {} timestamp in {}".format(timestamp, d.strftime("%Y-%m-%d %H:%M:%S")))
break
else:
print("[MISMATCH] {} is {}.".format(timestamp, d.strftime("%Y-%m-%d")))
timestamp += base
@bunseokbot
Copy link
Author

전 2629-02-15 17:46:40 이네여 "20800000000"
앞으로 612년만 더 살면될듯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment