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
/nix/store/x0g3y4xxc00w0a1ykbgmwzw1q0br5vp9-commons-io-2.8.0 | |
βββ share | |
βββ java | |
βββ commons-io-2.8.0.jar | |
βββ commons-io-2.8.0-javadoc.jar | |
βββ commons-io-2.8.0-sources.jar | |
βββ commons-io-2.8.0-tests.jar | |
βββ commons-io-2.8.0-test-sources.jar | |
2 directories, 5 files |
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
# Write a Python program to calculate number of days between two dates. | |
# (2014, 7, 2), (2014, 7, 11) | |
import datetime as date | |
def num_of_days(date_one, date_two): | |
try: | |
(year, month, day) = date_one | |
new_date = date.datetime(year, month, day).timestamp() |
OlderNewer