6 points by sebst in: 1 year, 6 months ago | 2 comments


 
1 point by danchr 1 year, 6 months ago | discuss | on: Stop Using datetime.now
That's terrible advice. I was expecting it to argue that `datetime.now()` is harmful due to its lack of timezone support, but no‚Ķ Apparently, the author never heard of freezegun, and so wrote an awful lot of code to ‚ÄĒ essentially ‚ÄĒ¬†reimplement it. Yes, use `datetime.now`. Write simple code. When testing, use something like freezegun to adjust the clock.
 
1 point by temperisland 1 year, 5 months ago | discuss | on: Stop Using datetime.now
Why