Last active
September 13, 2017 20:29
-
-
Save ks7000/419976d31c844a52288d246cb2eca5a9 to your computer and use it in GitHub Desktop.
El día 256 de cada año se celebra nuestro día, nosotros los héores anónimos que, por ahora, escribimos código para ordenadores y motorizamos al mundo por medio de los ordenadores (ya no podemos vivir sin ellos) ¡Falta agregar código para años bisiestos!
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
#!/usr/bin/python | |
#-*-coding:utf-8-*- | |
from datetime import datetime | |
ahora = datetime.now() | |
#Si el año es bisiesto entonces el día 256 es el 12 de septiembre | |
if ( ahora.strftime("%j") == "256" ) : | |
print ("Feliz Día del Programador "+ahora.strftime("%d/%m/%Y")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment