You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, datetime.date converts to a std::chrono::sys_time with zero hour/minute/second.. component.
This is wrong, because datetime.date represents a calendar date, not a time point. A more suitable conversion would be to std::chrono::sys_days, with the following code:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Right now,
datetime.date
converts to a std::chrono::sys_time with zero hour/minute/second.. component.This is wrong, because
datetime.date
represents a calendar date, not a time point. A more suitable conversion would be tostd::chrono::sys_days
, with the following code:Beta Was this translation helpful? Give feedback.
All reactions