How to find Difference between to time durations in java? -


please me on this.

i had 2 duration times in string format: ex: "10" , "0.30"(actually there in minutes)

i parsed values double , find find difference?

but getting output 9.7 wrong want 9.30.. please suggest

thanks in advance!

you can use joda-time library.use period class can difference between 2 times in terms of hours , minutes.for example refer second answer question


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -