Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 6th, 2006, 04:05 PM
Oliver Bleckmann
Guest
 
Posts: n/a
Default how to determin if a date is in between two other dates?

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?


  #2  
Old December 6th, 2006, 04:25 PM
dasjotre
Guest
 
Posts: n/a
Default Re: how to determin if a date is in between two other dates?


Oliver Bleckmann wrote:
Quote:
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.

  #3  
Old December 6th, 2006, 04:55 PM
Alf P. Steinbach
Guest
 
Posts: n/a
Default Re: how to determin if a date is in between two other dates?

* Oliver Bleckmann:
Quote:
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.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
  #4  
Old December 6th, 2006, 04:55 PM
osmium
Guest
 
Posts: n/a
Default Re: how to determin if a date is in between two other dates?

"Oliver Bleckmann" writes:
Quote:
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.


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles