This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Adding seconds to time" Watch "Adding seconds to time" New topic

Adding seconds to time

Will Paul

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:
subject: Adding seconds to time
It's not a secret anymore!