|
|
military time in java
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: Web Service for Thesaurus - comp.lang.java.programmer> Try my google..> <http://www.google.com/search?q=thesaurus+java>> The second ... Synonyms: account , advantage , applicability, appropriateness ... noun: time in military ... ntpd, boot time, and hot plugging - comp.protocols.time.ntp ...One of the things that slows down the boot process is waiting for an initial network time sync. I'd like to solicit opinions on how to organize the interaction between ... Ada in Boeing 787 - comp.lang.adaTo have for serious words : I know in france, some military ... have an engineer friend who is a long-time employee of ... do we actually use them in embedded systems? Does Java ... Mixet.se Media Center - Mixet B2B Marketplace - comp.lang.java.gui ...... Automobile Trade, Trade Engineering, Product, Military ... corporate events, development events, real- time ... Media Center - Mixet B2B Marketplace - comp.lang.java ... Rendering Latency - comp.graphics.api.openglIf the rendering is complete well within the frame time ... 60Hz is the standard frequency in avionics and military ... BattleShip Game App using Swing - comp.lang.java ... Fujitsu Siemens Primepower - comp.unix.solarisLast time I read in the Register anyway : > One problem with the T series is less ... Siemens Primepower - comp.unix.solaris Moving from NTML to AD - comp.lang.java ... Misuses of RTTI - comp.lang.c++.moderated... is done for scientific purposes only or as part of military ... You can check at compile-time if an object has a member ... The obvious success of RAD IDEs built from Java, .Net ... Import Scan Images to DICOM as Open Source Application - comp ...... to read the MAC adress is a very bad idea, some people (military, or ... implementation question (Java): Timestamp - comp.protocols.time ... Import Scan Images to DICOM as ... MC: 4th power with no small digits - comp.sys.hp48Using TIME and HMS-: 0.0429166382 (just under 4.5 ... not have a stake in this outcome, nor will the military ... single int digits from a String - comp.lang.java ... Media Center: Advertising - comp.lang.java.programmer... Automobile Trade, Trade Engineering, Product, Military ... corporate events, development events, real- time ... Media Center: Advertising - comp.lang.java.programmer ... Java to convert military time to standard time? - Yahoo! AnswersYour input method needs some work because it doesn't stop for the users' prompt in any of your programs, I'll leave that one for you to figure out. For ... How can one subtract military time in a java program? ex. There is ...Best Answer: here it goes... Key is to..change in minutes first import java.util.Scanner; public class MilitaryTime { public static void main ( String ... 7/24/2012 4:29:28 AM
|
|
|
|
|
|
|
|
|