This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Adding seconds to time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Adding seconds to time" Watch "Adding seconds to time" New topic
Author

Adding seconds to time

Will Paul
Greenhorn

Joined: May 27, 2005
Posts: 8
Not sure if this is beginner or intermediate. How can I add seconds to a time value as in hh:mm:ss? For example, 30 (seconds) + 10:30:05
[ November 22, 2005: Message edited by: Will Paul ]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
one of the ways
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Here's another way, if you are using calendar:


There is no emoticon for what I am feeling!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding seconds to time
 
Similar Threads
dilbert
Difference between '+' and concat in string
Refresh image
Session variables are not getting storred
Cool Names for Bands/Artists