Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# -*- coding: utf-8 -*-
from datetime import datetime
import pytz
import base64
class ProgrammersDay(object):
def __init__(self):
self.message = "wqFGZWxpeiBkw61hIGEgdG9kb3M"\
"gbG9zIHByb2dyYW1hZG9yZXMgeS"\
"Bwcm9ncmFtYWRvcmFzIQpIb3kgb"\
"m8gdHJhaWdhbiBjb21pZGEgOi0p"
self.start()
def start(self):
print base64.b64decode(self.message)
def main():
timezone = pytz.timezone("America/Argentina/Buenos_Aires")
now = timezone.localize(datetime.now())
f = timezone.localize(datetime(2019, 9, 13))
t = timezone.localize(datetime(2019, 9, 14))
if f <= now < t:
ProgrammersDay()
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.