Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 18, 2021 22:09
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 parzibyte/d1ce308c5e8e135aabdc14508685948f to your computer and use it in GitHub Desktop.
Save parzibyte/d1ce308c5e8e135aabdc14508685948f to your computer and use it in GitHub Desktop.
from datetime import datetime, timedelta
ahora = datetime.now()
dentro_de_50_horas = ahora + timedelta(hours=50)
diferencia = (dentro_de_50_horas-ahora)
print(diferencia.total_seconds())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment