Or Toledano <ortoled...@protonmail.com> added the comment:

The use-case for this method is to "limit" the resolution of a time object.
I encountered the need for it when I needed to reduce the resolution of some 
timestamps, to compare them with timestamps of lesser resolution.
I found the following SOF post: 
https://stackoverflow.com/questions/13838394/can-i-easily-get-datetime-with-less-resolution-in-python
which made me think that a zero function can be nice for that use case of 
datetime.replace

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40316>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to