military time in java

  • Follow


Hi all,I am new programmer, and need to use the military time to calculatethe duration of a phone call.I wanted to use the increment and add 1 to make the hour change.  Ihave to input the time but I am not sure how to do it.  Do I need todeclare the hours if greater than 59 then add 1 and reset the countIf anyone can direct me to the proper way, I would appreciate itthanks,Luvie
0
Reply mrshinton01 (1) 9/22/2007 1:24:34 AM

On Fri, 21 Sep 2007 18:24:34 -0700, mrshinton01@gmail.com wrote,
quoted or indirectly quoted someone who said :

>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.
-- 
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
0
Reply Roedy 9/22/2007 2:11:22 AM


1 Replies
614 Views

(page loaded in 0.06 seconds)

Similiar Articles:













7/24/2012 4:29:28 AM


Reply: