resolution()

resolution() : Returns the minimum difference between two non equal date objects .
from datetime import date
dt=date.today().resolution
print(dt))
Output
1 day, 0:00:00
Date with time
from datetime import datetime
dt=datetime.now().resolution
print(dt)
Output
0:00:00.000001

Using date object

import datetime
# Year, Month, date, Hour, Minute , Second, mircosecond 
dt=datetime.datetime(2019,12,31,23,59,59,345234)
print(dt.resolution)
Output
0:00:00.000001
All Date Objects


plus2net.com



Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer