c#秒转成时分秒显示
c#秒转成时分秒显示
public DateTime GetDateTimeBySeconds(double seconds) { return DateTime.Parse(DateTime.Now.ToString("1970-01-01 00:00:00")).AddSeconds(seconds); }
欢迎讨论,相互学习。
cdtxw@foxmail.com
c#秒转成时分秒显示
public DateTime GetDateTimeBySeconds(double seconds) { return DateTime.Parse(DateTime.Now.ToString("1970-01-01 00:00:00")).AddSeconds(seconds); }