Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active April 23, 2020 16:05
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/9c2b6c1d78d3fb0c8fe734be358f15e5 to your computer and use it in GitHub Desktop.
Save parzibyte/9c2b6c1d78d3fb0c8fe734be358f15e5 to your computer and use it in GitHub Desktop.
from datetime import datetime
from datetime import timedelta
ahora = datetime.now()
print("Ahora: " + str(ahora))
hace_una_semana = ahora - timedelta(days=7)
print("Hace una semana: " + str(hace_una_semana))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment