init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace Zhaizj.Framework {
|
||||
|
||||
/// <summary>
|
||||
/// 时间的工具类
|
||||
/// </summary>
|
||||
public class time {
|
||||
|
||||
/// <summary>
|
||||
/// 检查 t 是否是明天
|
||||
/// </summary>
|
||||
/// <param name="t"></param>
|
||||
/// <returns></returns>
|
||||
public static Boolean IsNextDay( DateTime t ) {
|
||||
DateTime now = DateTime.Now;
|
||||
TimeSpan span = now.Subtract( t );
|
||||
return ((span.TotalDays >= 1.0) || ((span.TotalDays > 0.0) && (now.Day > t.Day)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user