Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud
this week in the
Cloud/Virtualization
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
Java in General
Adding time in hh:mm:ss
saiyalini thangadurai
Greenhorn
Posts: 3
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi,
how to add two time in the format(hh:mm:ss).for ex 01:00:59+01:00:01=02:01:00
please help me,
thanks
Christophe Verré
Sheriff
Posts: 14691
16
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The Calendar class has an add(int,int) method which allows you to add hours, minutes, seconds to a date. Make a calendar, set its hours, minutes, seconds, and add the other hh:mm:ss to it.
[My Blog]
All roads lead to JavaRanch
Campbell Ritchie
Marshal
Posts: 80874
506
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
There was a similar question very recently
here
.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to get "HH:mm:ss" from a long ?
Adding 2 Times Together
Time Difference
Can someone please help me parse this date
Time Difference
More...