|
| |
|
|
rickyzicky
Posts: 208 From: roch, ny Status: offline
|
Military Time - 12/6/2001 3:20:58
What is the best way to calculate time using military time. I need to calculate time spent. Though it is easy to calculate time spent if the hour started was 1600 hours and time ended was 1800 hours. But how do I tackle the problem when the hour started is 2300 and the hour ended was 0100 hours. I need this to calsulate to 2hours. Once we are past 2400 it gets tougher (at least for me). Any ideas ?
|
|
|
|
rdouglass
Posts: 9265 From: Biddeford, ME USA Status: offline
|
RE: Military Time - 12/6/2001 8:24:56
I think it depends on how you're storing your time values. If I was doing it I would calculate the diff between time AND date like: Set a variable ie. myTime Subtract dates. myTime = results multiplied by 24. Subtract times. Add to myTime Format myTime and season to taste.... Does this make sense???
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|