/// <summary> /// Add work days<br /> /// 添加若干工作日 /// </summary> /// <param name="days"></param> /// <returns></returns> public ChineseDateInfo AddWorkDays(int days) { var cc = new ChineseDateInfo(InternalDateTime); if (days <= 0) { days = 1; } while (true) { cc = cc.Tomorrow(); if (cc.IsWorkDay()) { days--; } if (days == 0) { return(cc); } } }
/// <summary> /// Get Chinese Constellation<br /> /// 获取二十八星宿 /// </summary> /// <param name="dt"></param> /// <param name="traditionalChineseCharacters"></param> /// <returns></returns> public static string Get(ChineseDateInfo dt, bool traditionalChineseCharacters = false) { return(Get(dt.InternalTime, traditionalChineseCharacters)); }