Created
May 3, 2017 18:40
-
-
Save serhii73/926dc2c5624e7fdf21f57d4cff319967 to your computer and use it in GitHub Desktop.
Отнимаем одну дату от другой
This file contains hidden or 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
| >>> from datetime import datetime, timedelta | |
| >>> a = datetime(2010, 12, 12) | |
| >>> b = datetime(2009, 12, 12) | |
| >>> a-b | |
| datetime.timedelta(365) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment