Answers for "drop mili sencond from datetime index"

0

drop mili sencond from datetime index

>>> d = datetime.datetime.today().replace(microsecond=0)
>>> d
datetime.datetime(2015, 7, 18, 9, 50, 20)
Posted by: Guest on August-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language