Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
holiday-kr
Advanced tools
Readme
getLunar(Date) or getLunar(year, month, day) : 양력 -> 음력 변환. 결과 : object
holidayKR.getLunar(2016, 1, 1);
//{ year: 2015, month: 11, day: 22, leapMonth: false, dayOfWeek: '금' }
holidayKR.getLunar(new Date(2016, 0, 1));
//{ year: 2015, month: 11, day: 22, leapMonth: false, dayOfWeek: '금' }
getSolar(Date) or getSolar(year, month, day, isLeapMonth) : 음력 -> 양력 변환. 결과 : object
var holidayKR = require('holiday-kr');
holidayKR.getSolar(2015, 11, 22);
//result : { year: 2016, month: 1, day: 1, leapMonth: false, dayOfWeek: '금' }
holidayKR.getSolar(new Date(2015, 10, 22));
//result : { year: 2016, month: 1, day: 1, leapMonth: false, dayOfWeek: '금' }
휴일 기준
isSolarHoliday(Date) or isSolarHoliday(year, month, day) : 입력된 양력 날짜 기준으로 휴일인지 체크. 휴일 기준은 위 명시된 날만 해당함. 결과 : boolean
var holidayKR = require('holiday-kr');
holidayKR.isSolarHoliday(2016, 1, 1);
//true
holidayKR.isSolarHoliday(new Date(2016, 0, 2));
//false
isLunarHoliday(Date) or isLunarHoliday(year, month, day, isLeapMonth) : 입력된 음력 날짜 기준으로 휴일인지 체크. 휴일 기준은 위 명시된 날만 해당함. 결과 : boolean
var holidayKR = require('holiday-kr');
holidayKR.isLunarHoliday(2016, 1, 1);
//true
holidayKR.isLunarHoliday(new Date(2016, 0, 2));
//true
FAQs
한국 기준 음력, 양력 변환 및 휴일 체크
The npm package holiday-kr receives a total of 150 weekly downloads. As such, holiday-kr popularity was classified as not popular.
We found that holiday-kr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.