如何以Minute:Second格式转换秒

最佳答案

int totalSeconds = 222;
int seconds = totalSeconds % 60;
int minutes = totalSeconds / 60;
string time = minutes + ":" + seconds;

关于c# - 如何在min :sec format中转换秒,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3665012/

10-13 08:11