/// <summary> /// Is the nextDay the day after current date.<br /> /// 判断是否为第二天 /// </summary> /// <param name="d"></param> /// <param name="next"></param> /// <returns></returns> public static bool IsNextMatched(this DateInfo d, DateInfo next) { if (d is null || next is null) { return(false); } return(d.Tomorrow().Equals(next)); }
/// <summary> /// Next day, same as 'Tomorrow' /// </summary> /// <param name="d"></param> /// <returns></returns> public static DateInfo NextDay(this DateInfo d) => d.Tomorrow();