Contents
Round a Python datetime instance to the nearest second.
my_datetime (datetime) – Datetime instance to round.
New rounded datetime (microsecond set to 0).
datetime