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

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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -