Last active
January 13, 2022 07:16
-
-
Save Morteza-QN/96303671c56f9ce52e3c87cb36ba0dbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String convertMillisToString(long duration) { | |
long sec = (duration / 1000) % 60; | |
long min = (duration / (1000 * 60)) % 60; | |
return String.format(Locale.US, "%02d:%02d", min, sec); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment