Skip to content

Instantly share code, notes, and snippets.

@pmolina
Created September 6, 2019 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmolina/1c59b88a843b22d0c2d92fe23c51f77b to your computer and use it in GitHub Desktop.
Save pmolina/1c59b88a843b22d0c2d92fe23c51f77b to your computer and use it in GitHub Desktop.
# -*- 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