Last active
July 30, 2017 01:05
-
-
Save bunseokbot/5a03487470951dc39dff9ddbf8429649 to your computer and use it in GitHub Desktop.
내 생일 기념 타임스탬프는 언제쯤 올까..
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
전 2629-02-15 17:46:40 이네여 "20800000000"
앞으로 612년만 더 살면될듯