
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
shiren-calendar
Advanced tools
公元前1000~公元3000年
console.log(solar2lunar(2021, 11, 11)) // [2021,10,7,false]
console.log(lunar2solar(2021, 10, 7)) // [2021,11,11]
console.log(solarMonthHasDays(2021, 11)) // 30
console.log(lunarMonthHasDays(2020, 4)) // 30
console.log(lunarMonthHasDays(2020, 4, true)) // 润4月 29
console.log(yearJieQi(1990))
// [
// { year: 1990, month: 2, day: 4, dd: 6 }, // dd为下一个节气的开始时间,也是当前节气终止的时间
// { year: 1990, month: 3, day: 6, dd: 5 },
// { year: 1990, month: 4, day: 5, dd: 6 },
// { year: 1990, month: 5, day: 6, dd: 6 },
// { year: 1990, month: 6, day: 6, dd: 7 },
// { year: 1990, month: 7, day: 7, dd: 8 },
// { year: 1990, month: 8, day: 8, dd: 8 },
// { year: 1990, month: 9, day: 8, dd: 8 },
// { year: 1990, month: 10, day: 8, dd: 8 },
// { year: 1990, month: 11, day: 8, dd: 7 },
// { year: 1990, month: 12, day: 7, dd: 6 },
// { year: 1991, month: 1, day: 6, dd: 4 }
// ]
console.log(gzi(2021, 11, 11, 15))
// {
// g: [ 7, 5, 9, 6 ], // 天干
// z: [ 1, 11, 11, 8 ], // 地址
// jd: 2459530.125011574, // 输入日期对应的儒略历时间
// jq: [ 2459526.0404064553, 2459555.747754251 ], // 输入日期对应的前后节气(12节气,不包含中气)
// jqi: 10 // 对应节气的索引 0 ~ 15 (详情参考gzi方法实现)
// }
如果需要区分早晚子时,调用时加入相应参数即可
gzi(2021, 11, 11, 15,0, 0, true)
console.log(plate(true,2000, 1, 1, 11)) // 未区分早晚子时
// {
// basic: { g: [ 5, 2, 4, 4 ], z: [ 3, 0, 6, 6 ] }, // 四柱天干地址
// lucky: { // 大运
// desc: '8年2月6天起运',
// g: [ // 大运天干
// 1, 0, 9, 8, 7,
// 6, 5, 4, 3, 2,
// 1, 0
// ],
// z: [ // 大运地支
// 11, 10, 9, 8, 7,
// 6, 5, 4, 3, 2,
// 1, 0
// ],
// datetime: [ // 每个大运对应的起运时间
// '2008-01-25 11:49:00',
// '2017-12-03 11:49:00',
// '2027-10-12 11:49:00',
// '2037-08-20 11:49:00',
// '2047-06-29 11:49:00',
// '2057-05-07 11:49:00',
// '2067-03-16 11:49:00',
// '2077-01-22 11:49:00',
// '2086-12-01 11:49:00',
// '2096-10-09 11:49:00',
// '2106-08-19 11:49:00',
// '2116-06-27 11:49:00'
// ]
// },
// shiren: { datetime: '2008-02-04 19:00:31', year: 2008 }, // 实仁算法的大运起运年及时间
// birth: { // 输入日期对应的前后节气名称及时间
// front: { name: '大雪', time: '1999-12-07 21:47:36' },
// back: { name: '小寒', time: '2000-01-06 09:01:02' }
// }
// }
//
乙亥/己丑/丙辰/壬辰
console.log(gz2datetime(11, 25, 52, 28))
[
[ [ 1516, 1, 7, 7, 0, 0 ], [ 1516, 1, 7, 9, 0, 0 ] ],
[ [ 1696, 2, 1, 7, 0, 0 ], [ 1696, 2, 1, 9, 0, 0 ] ],
[ [ 1756, 1, 18, 7, 0, 0 ], [ 1756, 1, 18, 9, 0, 0 ] ],
[ [ 1936, 2, 4, 7, 0, 0 ], [ 1936, 2, 4, 9, 0, 0 ] ],
[ [ 1996, 1, 20, 7, 0, 0 ], [ 1996, 1, 20, 9, 0, 0 ] ],
[ [ 2236, 1, 22, 7, 0, 0 ], [ 2236, 1, 22, 9, 0, 0 ] ],
[ [ 2296, 1, 7, 7, 0, 0 ], [ 2296, 1, 7, 9, 0, 0 ] ],
[ [ 2476, 1, 23, 7, 0, 0 ], [ 2476, 1, 23, 9, 0, 0 ] ]
]
FAQs
The npm package shiren-calendar receives a total of 20 weekly downloads. As such, shiren-calendar popularity was classified as not popular.
We found that shiren-calendar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.