Browse Source

delete: debug js

Yaavi 2 months ago
parent
commit
5d084256cc
1 changed files with 0 additions and 18 deletions
  1. 0 18
      debug_lunar.js

+ 0 - 18
debug_lunar.js

@@ -1,18 +0,0 @@
-const chineseDays = require("./dist/index.min.js");
-const { getLunarDate, getYearLeapMonth } = chineseDays;
-
-console.log("Lunar for 2028-05-26:", JSON.stringify(getLunarDate("2028-05-26")));
-
-const START = 1900;
-const END   = 2100;
-
-const yearsWith30DayLeap = [];
-
-for (let year = START; year <= END; year++) {
-  const { leapMonth, days } = getYearLeapMonth(year);
-  if (leapMonth && days === 30) {
-    yearsWith30DayLeap.push(year);
-  }
-}
-
-console.log('闰月为30天的年份:', yearsWith30DayLeap);