The Artima Developer Community
Sponsored Link

Java Answers Forum
calculate the difference in time

1 reply on 1 page. Most recent reply: Sep 2, 2006 12:53 PM by Vijay Nathani

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
aardra p

Posts: 8
Nickname: aardra
Registered: Apr, 2006

calculate the difference in time Posted: Aug 2, 2006 4:02 AM
Reply to this message Reply
Advertisement
hi all,
any body know java program for calculating the time difference using gui,
ie, in gui i have to give like hh1:mm1:ss1,hh2:mm2:ss2 format and i have to get tha difference in same format...


Vijay Nathani

Posts: 29
Nickname: vijaynath
Registered: Jan, 2006

Re: calculate the difference in time Posted: Sep 2, 2006 12:53 PM
Reply to this message Reply
There is no automatic method that I know. You can
1. convert both the times into seconds
2. do the subtraction
3. convert the answer back to hh:mm:ss

Vijay
www.geocities.com/vijay_nathani

Flat View: This topic has 1 reply on 1 page
Topic: Run a VB software as a java applet Previous Topic   Next Topic Topic: Tomcat v5.5 Server @ localhost are already in use

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use