Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Is there a way to treat dates as numbers, without the need of implementing my own class for that?
I would like to compare dates, compute differences (Monday - Friday should be one day, I'm considering business days) etc..?
正如 chris 建议的那样,使用Boost,或者,如果这是一个问题,使用 C 库( C++ 中的ctime标头)。