Timeline for C++ Add months to chrono::system_clock::time_point
Current License: CC BY-SA 3.0
Post Revisions
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 1, 2018 at 18:40 | vote | accept | Antonio Petricca | ||
| Apr 5, 2017 at 0:39 | history | edited | Howard Hinnant |
edited tags
|
|
| Mar 26, 2017 at 0:08 | history | edited | Howard Hinnant |
edited tags
|
|
| Mar 25, 2017 at 15:19 | answer | added | Howard Hinnant | timeline score: 23 | |
| Mar 24, 2017 at 22:58 | comment | added | nwp |
Would std::chrono::hours(24*30) be good enough? Months are hard to deal with because their length varies.
|
|
| Mar 24, 2017 at 22:52 | comment | added | Mooing Duck |
time_point is a mostly unitless instant in time. You must first convert it to a DateTime of some sort, which represents a calendar representation of a time. Then simply add one month.
|
|
| Mar 24, 2017 at 22:47 | history | asked | Antonio Petricca | CC BY-SA 3.0 |