zzzbbx
zzzbbx

Reputation: 10131

C++, treating dates as numbers

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

Upvotes: 3

Views: 126

Answers (1)

src
src

Reputation: 551

As chris suggested, use Boost or, if that's a problem, use the C library (ctime header in C++).

Upvotes: 1

Related Questions