pylover / khayyam

A Persian Date & Time (aka: Jalali Calendar) library with timezone, DST (daylight-saving), full formatting & parsing support for python 2.x & 3.x.
http://khayyam.dobisel.com
GNU General Public License v3.0
142 stars 22 forks source link

do we have total_seconds? #31

Closed sae13 closed 6 years ago

sae13 commented 6 years ago

from khayyam import JalaliDatetime as jDatetime; herBirthday = jDatetime(1396, 10, 24, 23, 59, 55); now = jDatetime.now(); delta = herBrthday - now;

how I can have delta.total_seconds?

pylover commented 6 years ago

Please check the Python's documentation:

https://docs.python.org/2/library/datetime.html#datetime.timedelta.total_seconds