Results 1 to 3 of 3
Thread: Time Calculation Assistance
- 02-17-2011, 03:50 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 6
- Rep Power
- 0
Time Calculation Assistance
I am trying to get my clock program to figure out the amount of time that has passed when a user enters the time in a military format.
How would i make it so it recognizes how much time has passed if the user enters the start time and then enters an end time that is less than the start time. EX. startTime = 1400 & endTime = 1300
My output keeps reading:
New Start Time: 1600
New Ending Time: 1130
Exactly -4 hour(s) and -50 minute(s) have passed.Last edited by toterpunkt; 02-17-2011 at 06:47 AM.
- 02-17-2011, 04:12 AM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
just do 24 - larger time, and then add the lower time to it.
so 1600 and 1100 would be 1900.
- 02-17-2011, 04:46 AM #3
Member
- Join Date
- Feb 2011
- Posts
- 6
- Rep Power
- 0
I'm not very good with java, i added what you advised to the very end. Did i even put it in there correctly? I've been staring at this code for so long i keep hitting mind blanks repeatedly. Will i know have to create all of my get methods all over again to fit with the new method i added at the end so that i can call it in my tester to make it print out the statement O_o? Am I even "close"
Code and Tester are on paste bin if anyone can take a look at my mess:
http://pastebin.com/SLAvQ8ykLast edited by toterpunkt; 02-17-2011 at 06:48 AM.
Similar Threads
-
JAVA Programmers Wanted - Full-Time and Part-Time Positions open
By javatrek2020 in forum Jobs OfferedReplies: 3Last Post: 08-23-2011, 12:46 PM -
Assistance about this.
By Syfer in forum Advanced JavaReplies: 38Last Post: 06-21-2010, 05:59 PM -
Looking for assistance
By s_dawg101 in forum New To JavaReplies: 32Last Post: 11-04-2009, 02:49 AM -
In need of some assistance
By Boer84 in forum New To JavaReplies: 2Last Post: 07-08-2008, 04:14 PM -
Problem with Calculation ....
By danny000 in forum New To JavaReplies: 1Last Post: 04-15-2008, 02:42 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks