Created
December 20, 2018 03:33
-
-
Save parzibyte/934e0690f4bc6846332fda6d32ff40a3 to your computer and use it in GitHub Desktop.
Hora actual en formato de 12 horas created by parzibyte - https://repl.it/@parzibyte/Hora-actual-en-formato-de-12-horas
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
""" | |
Hora actual en formato de 12 horas, | |
con AM y PM | |
@author parzibyte | |
""" | |
from datetime import datetime | |
ahora = datetime.now() | |
fecha = ahora.strftime("%I:%S:%M %p") | |
#Imprimir | |
print(fecha) | |
# 03:31:33 AM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment