timeparser.cs
来自「net代码生成器生成的三层架构项目中涉及的几个组件类库开发源码」· CS 代码 · 共 20 行
CS
20 行
using System;
using System.Collections.Generic;
using System.Text;
namespace LTP.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));
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?