C# DataTime时间比较简单使用

时间:2021-12-30 21:30:20
    /// <summary>
/// 传入本地或服务器系统时间做判断 true:还在签约中,false:签约已经过期
/// </summary>
/// <returns><c>true</c>, if system time was localed, <c>false</c> otherwise.</returns>
public static bool LocalSystemTime (DateTime currentTime, DateTime authorizeTime)
{
return authorizeTime > currentTime;
}