mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
13 lines
299 B
C#
13 lines
299 B
C#
using System;
|
|
|
|
namespace JNGame.Runtime.Util
|
|
{
|
|
public class TimeUtil
|
|
{
|
|
public static string FormatSecond(int totalSeconds,string format)
|
|
{
|
|
TimeSpan timeSpan = TimeSpan.FromSeconds(totalSeconds);
|
|
return timeSpan.ToString(format);
|
|
}
|
|
}
|
|
} |