cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
How to add N weeks to a sys_days?
How to add N weeks to a sys_days?
Nov 11, 2022 at 5:46pm UTC
JUANDENT
(411)
I have a starting sys_days called start but need to find the sys_days corresponding to start + N weeks into the future???
Nov 11, 2022 at 5:49pm UTC
jonnin
(11441)
here is an example of it
https://en.cppreference.com/w/cpp/chrono/year_month_day/operator_days
I don't remember anything in chrono that knows about weeks: I think you just have to use 7 days * #weeks for that.
Last edited on
Nov 11, 2022 at 5:51pm UTC
Nov 11, 2022 at 6:17pm UTC
JUANDENT
(411)
thanks!!
Topic archived. No new replies allowed.