初始化
This commit is contained in:
24
COMMON/STARTTIME_HELP.cs
Normal file
24
COMMON/STARTTIME_HELP.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace COMMON
|
||||
{
|
||||
public class STARTTIME_HELP
|
||||
{
|
||||
#region 判断时间是否合理
|
||||
/// <summary>
|
||||
/// 判断起始时间时间是否合理
|
||||
/// </summary>
|
||||
/// <param name="date"></param>
|
||||
/// <returns></returns>
|
||||
public static DateTime GetSTARTTIME(DateTime date)
|
||||
{
|
||||
return date < ConfigEntity.Instance.STARTTIME? ConfigEntity.Instance.STARTTIME:date;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user