日期:2014-05-18 浏览次数:20443 次
//时间转化 Int64 timeInMillis=Convert.ToInt64(e.Item.Cells[2].Text.Trim()); int hours = (int)Math.Floor(timeInMillis/(60*60)); int minutes = (int)Math.Floor((timeInMillis %(60*60))/60); int seconds = (int)(timeInMillis %(60*60))%60; e.Item.Cells[2].Text=hours.ToString()+"H"+minutes.ToString()+"M"+seconds.ToString()+"S";