Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Feb 8th, 2006, 6:18 AM   #2
oslan
Newbie
 
Join Date: Feb 2006
Posts: 6
Rep Power: 0 oslan is on a distinguished road
need help on how to calculate between 2 input times.

Dear friends,
I would like to get help from you guys on how to calculate the different between 2 input times (in minutes).

for example :

user_input_start_time = 10.25 /* means 10.25 AM */

user_input_end_time = 11.05 /* means 11.05 AM */

total_diff_time = user_input_end_time - user_input_start_time


from the above example , if use calculator, the answer is 0.80, but the
actual total_diff_time is only 0.40 (means 40 minutes).

How to calculate the above case in C programming.

Pls. help me.

Kind regards
Oslan

Last edited by oslan; Feb 8th, 2006 at 6:19 AM. Reason: speeling error
oslan is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:21 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC