P
P
pixik2016-11-16 17:24:33
C++ / C#
pixik, 2016-11-16 17:24:33

Is there any convenient class in the c++ libraries for working with dates?

Good time!
I am writing now under MFC, and I need a class for convenient work with dates. Need the possibility of increments by months, days; arithmetic operations with dates. And shift the responsibility for the correct dates to this class, so that as a result of some kind of gesture, an incorrect date does not turn out.
Perhaps this is some kind of wrapper over SYSTEMTIME.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Shatunov, 2016-11-16
@pixik

And there is also a standard time_point. Comfortable, official, happy to take responsibility. :)
You can read it here:
en.cppreference.com/w/cpp/chrono/time_point

S
sitev_ru, 2016-11-16
@sitev_ru

There is a self-written lib https://github.com/sitev/cjCore it has a self-written DateTime class... If necessary, I'll finish it for your needs...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question