java - How to start decreasing a duration stored in Firebase as string? Please see details -


i'm developing android app , have opted users choose duration , store on firebase string this:

hms = string.format("%02d:%02d:%02d", timeunit.milliseconds.tohours(duration),                     timeunit.milliseconds.tominutes(duration) % timeunit.hours.tominutes(1),                     timeunit.milliseconds.toseconds(duration) % timeunit.minutes.toseconds(1)); 

it getting saved 1:30:00.

now, retrieving firebase , showing user want show decreasing duration.

how can that?

please let me know.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -