C#毫秒转换成时分秒的代码
public static String formatLongToTimeStr(Long l) { //http://www.75271.com String str = ""; int hour = 0; int minute = 0; int second = 0; second = l.intValue() / 1000; if (second > 60) { minute = second / 60; second = second % 60; } if (minute > 60) { hour = minute / 60; minute = minute % 60; } return (hour.toString() + "小时" + minute.toString() + "分钟" + second.toString() + "秒"); }