Dec-11-2017, 10:36 PM
>>> import datetime as dt >>> now = dt.datetime.now() >>> today = dt.datetime(now.year, now.month, now.day) >>> difference = now - today >>> difference datetime.timedelta(0, 63325, 381547) >>> difference.seconds 63325
Newbie question to find the seconds between now and midnight
|
|
Messages In This Thread |
Newbie question to find the seconds between now and midnight - by zydjohn - Dec-11-2017, 10:15 PM
RE: Newbie question to find the seconds between now and midnight - by nilamo - Dec-11-2017, 10:36 PM
RE: Newbie question to find the seconds between now and midnight - by ODIS - Dec-12-2017, 04:14 PM
|