3

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..?

4

1 回答 1

1

正如 chris 建议的那样,使用Boost,或者,如果这是一个问题,使用 C 库( C++ 中的ctime标头)。

于 2012-06-24T11:10:51.213 回答