Hi all,
I am new programmer, and need to use the military time to calculate
the duration of a phone call.
I wanted to use the increment and add 1 to make the hour change. I
have to input the time but I am not sure how to do it. Do I need to
declare the hours if greater than 59 then add 1 and reset the count
If anyone can direct me to the proper way, I would appreciate it
thanks,
Luvie
Roedy Green - 22 Sep 2007 03:11 GMT
>I wanted to use the increment and add 1 to make the hour change. I
>have to input the time but I am not sure how to do it. Do I need to
>declare the hours if greater than 59 then add 1 and reset the count
do your calculations in UT milliseconds, and convert with DateFormat
to Zulu time. See http://mindprod.com/jgloss/calendar.html
for the details.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com