🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

vietnamese-lunar-calendar

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vietnamese-lunar-calendar

vietnamese lunar calendar converter

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

Vietnamese lunar calendar

A JavaScript library convert solar date to vietnamese lunar date

Installation

npm i vietnamese-lunar-calendar

Examples

Convert Solar date to Lunar date

import { LunarDate } from 'vietnamese-lunar-calendar';

new LunarDate();

new LunarDate(2022, 2, 1);
/*
  Output:
  Lunar year: 2022
  Lunar month: 1
  Lunar date: 1
*/

new LunarDate(new Date(2022, 1, 1));
/*
  Output:
  Lunar year: 2022
  Lunar month: 1
  Lunar date: 1
*/

Interface

Property
yearlunar year in number
monthlunar month in number
datelunar date in number
lunarYearlunar year in ganzhi
lunarMonthlunar month in ganzhi
lunarDatelunar date in ganzhi
isLeapwhether lunar year is a leap year
isVegetarianDayBuddhists vegetarian day
luckyHoursauspicious time to do something
holidaypublic holidays in Vietnam

Thanks

Hồ Ngọc Đức Lunar Calendar

FAQs

Package last updated on 28 Jan 2022

Did you know?

Socket

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.

Install

Related posts