陈斌彬的技术博客

Stay foolish,stay hungry

把秒转换成分钟

code

using System;
using System.Collections.Generic;
using System.Text;

namespace ZWL.Common
{
    public class TimeParser
    {
        /// <summary>
        /// 把秒转换成分钟
        /// </summary>
        /// <returns></returns>
        public static int SecondToMinute(int Second)
        {
            decimal mm = (decimal)((decimal)Second / (decimal)60);
            return Convert.ToInt32(Math.Ceiling(mm));           
        }
    }
}