/// <summary>
 /// Determine whether the specified day is a leap day.<br />
 /// 判断指定的日是否为闰日。
 /// </summary>
 /// <param name="d"></param>
 /// <param name="calendar"></param>
 /// <returns></returns>
 public static bool IsLeapDay(this DateInfo d, ChineseLunisolarCalendar calendar) => ChineseDateHelper.IsLeapDay(calendar, d);
Exemplo n.º 2
0
 /// <summary>
 /// Gets Chines Sexagenary Year<br />
 /// 获取干支年
 /// </summary>
 /// <param name="traditionalChineseCharacters"></param>
 /// <returns></returns>
 public string GetSexagenaryYear(bool traditionalChineseCharacters = false) => ChineseDateHelper.GetSexagenaryYear(Calendar, InternalDateTime, traditionalChineseCharacters);
 /// <summary>
 /// Determine whether the specified day is a leap day.<br />
 /// 判断指定的日是否为闰日。
 /// </summary>
 /// <param name="d"></param>
 /// <returns></returns>
 public static bool IsLeapDay(this DateInfo d) => ChineseDateHelper.IsLeapDay(null, d);
Exemplo n.º 4
0
 /// <summary>
 /// Gets Chinese year as string<br />
 /// 获取汉字农历年份
 /// </summary>
 /// <param name="traditionalChineseCharacters"></param>
 /// <returns></returns>
 public string GetChineseYear(bool traditionalChineseCharacters = false) => ChineseDateHelper.GetChineseYear(InternalDateTime, traditionalChineseCharacters);
Exemplo n.º 5
0
 /// <summary>
 /// Is current day a leap day.<br />
 /// 当前日份是否为闰日
 /// </summary>
 /// <returns></returns>
 public bool IsLeapDay() => ChineseDateHelper.IsLeapDay(Calendar, InternalDateTime);
Exemplo n.º 6
0
 /// <summary>
 /// Gets Chinese Time<br />
 /// 获取农历时辰信息
 /// </summary>
 /// <param name="traditionalChineseCharacters"></param>
 /// <returns></returns>
 public string GetChineseTime(bool traditionalChineseCharacters = false) => ChineseDateHelper.GetChineseHour(Calendar, InternalDateTime, traditionalChineseCharacters);
 /// <summary>
 /// Determine whether the specified day is a leap day.<br />
 /// 判断指定的日是否为闰日。
 /// </summary>
 /// <param name="dt"></param>
 /// <param name="calendar"></param>
 /// <returns></returns>
 public static bool IsLeapDay(this DateTime dt, ChineseLunisolarCalendar calendar) => ChineseDateHelper.IsLeapDay(calendar, dt);
 /// <summary>
 /// Determine whether the specified day is a leap day.<br />
 /// 判断指定的日是否为闰日。
 /// </summary>
 /// <param name="dt"></param>
 /// <returns></returns>
 public static bool IsLeapDay(this DateTime dt) => ChineseDateHelper.IsLeapDay(null, dt);