Well, @fonzali, at the moment i tryed your code, the output was:
2015-02-24 07:21:53.769512
2015
2015-03-21 02:15:11
24 days, 18:53:17.230488
There are 67997 seconds till Persian New Year
2141597.23049
I've printed all variables in the code to see them in terminal; look at those 2 last lines. With .format(differ.seconds)
the output was 67997 seconds
, but with differ.total_seconds()
the output was 2141597.23049
. So why the results were different?! Why i've got 2 different seconds?!