how to determin if a date is in between two other dates?

  • Thread starter Oliver Bleckmann
  • Start date
O

Oliver Bleckmann

for i dont know how to work with date types in c++
this is a very difficult task for me
any suggestions how to start?
 
D

dasjotre

Oliver said:
for i dont know how to work with date types in c++
this is a very difficult task for me
any suggestions how to start?

What date types in C++?

As far as I know there is only C stuff declared in time.h (or its C++
wrap ctime).

Be more specific.
 
A

Alf P. Steinbach

* Oliver Bleckmann:
for i dont know how to work with date types in c++
this is a very difficult task for me
any suggestions how to start?

Take a look at the Boost library. It has some date and time stuff. As
I recall they messed up comparisions (necessary to add some simple
wrappers), but still usable.
 
O

osmium

Oliver Bleckmann said:
for i dont know how to work with date types in c++
this is a very difficult task for me
any suggestions how to start?

Convert the three dates to Julian day number and do comparisons on those
dates.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top