コード例 #1
0
 /// <summary>
 /// Is special month a leap month.
 /// </summary>
 /// <param name="dt"></param>
 /// <returns></returns>
 public static bool IsLeapMonth(this DateTime dt) => ChineseDateHelper.IsLeapMonth(null, dt);
コード例 #2
0
 /// <summary>
 /// Is special month a leap month.
 /// </summary>
 /// <param name="dt"></param>
 /// <param name="calendar"></param>
 /// <returns></returns>
 public static bool IsLeapMonth(this DateTime dt, ChineseLunisolarCalendar calendar) => ChineseDateHelper.IsLeapMonth(calendar, dt);
コード例 #3
0
 /// <summary>
 /// Is special month a leap month.
 /// </summary>
 /// <param name="d"></param>
 /// <returns></returns>
 public static bool IsLeapMonth(this DateInfo d) => ChineseDateHelper.IsLeapMonth(null, d);