What is a classy way to way truncate a python datetime
object?
In this particular case, to the day. So basically setting hour, minute, seconds, and microseconds to 0.
I would like the output to also be a datetime
object, not a string.
What is a classy way to way truncate a python datetime
object?
In this particular case, to the day. So basically setting hour, minute, seconds, and microseconds to 0.
I would like the output to also be a datetime
object, not a string.