cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
date comparison
date comparison
Sep 16, 2009 at 12:59pm UTC
privs
(5)
I am using c++ 2006 by borland delphi
I have two dates that i want compared , basically i want to find out how may minutes between them
I am a novice when it comes to C++ and i found this on the help, how do i use this in my code:
iLeftVal = __int64 MinutesBetween(TimeToStr(Now()) ,TimeToStr(Now()));
Sep 16, 2009 at 4:10pm UTC
Bazzy
(6281)
That is not standard C++.
C doesn't have a date library but you can use the C one:
http://www.cplusplus.com/reference/clibrary/ctime/
the functions mktime and difftime should help you
Topic archived. No new replies allowed.