All Projects → 6tail → lunar-typescript

6tail / lunar-typescript

Licence: MIT license
日历、公历(阳历)、农历(阴历、老黄历)、佛历、道历,支持节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道黑道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to lunar-typescript

astro
自用天文算法,公历农历转换、八大行星位置、日出日落月出月落时间、节气物候时间等
Stars: ✭ 33 (-46.77%)
Mutual labels:  calendar, lunar
LunarCalendar
A lightweight macOS App for displaying calendar and time
Stars: ✭ 82 (+32.26%)
Mutual labels:  calendar, lunar
Aaf Easydiary
📘 A diary application optimized for user experience.
Stars: ✭ 216 (+248.39%)
Mutual labels:  calendar
chinese-calendar-golang
📅 公历, 农历, 干支历转换包, 提供精确的日历转换.
Stars: ✭ 104 (+67.74%)
Mutual labels:  lunar
Supercalendar
@deprecated android 自定义日历控件 支持左右无限滑动 周月切换 标记日期显示 自定义显示效果跳转到指定日期
Stars: ✭ 2,732 (+4306.45%)
Mutual labels:  calendar
React Native Add Calendar Event
Create, view or edit events in react native using the standard iOS / Android dialogs
Stars: ✭ 225 (+262.9%)
Mutual labels:  calendar
chronos
Chronos是用于Fate起名的日历计算工具,计算(公历,农历,八字,万年历,年柱,日柱,月柱,时柱,四柱)等
Stars: ✭ 66 (+6.45%)
Mutual labels:  lunar
Kalendar
Full featured, responsive, lightweight calendar in the browser.
Stars: ✭ 213 (+243.55%)
Mutual labels:  calendar
kalendar
📅This is a lib for creating calendars
Stars: ✭ 12 (-80.65%)
Mutual labels:  calendar
Profiles
👍 Make JavaScript Great Again
Stars: ✭ 238 (+283.87%)
Mutual labels:  calendar
jh-weapp-demo
微信小程序项目- 实现一些常用效果、封装通用组件和工具类
Stars: ✭ 60 (-3.23%)
Mutual labels:  lunar
React Native Calendario
📆 React Native Calendar
Stars: ✭ 234 (+277.42%)
Mutual labels:  calendar
Elegantcalendar
The elegant full screen calendar missed in SwiftUI.
Stars: ✭ 224 (+261.29%)
Mutual labels:  calendar
react-native-lunar-calendar
A react-native lunar calendar project for android and ios.
Stars: ✭ 25 (-59.68%)
Mutual labels:  lunar
Calendarview
A highly customizable calendar library for Android, powered by RecyclerView.
Stars: ✭ 2,862 (+4516.13%)
Mutual labels:  calendar
lunar-php
日历、公历(阳历)、农历(阴历、老黄历)、佛历、道历,支持节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道黑道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.
Stars: ✭ 84 (+35.48%)
Mutual labels:  lunar
Simple Calendar
A simple calendar with events, customizable widgets and no ads.
Stars: ✭ 2,696 (+4248.39%)
Mutual labels:  calendar
Ipoli Android
Fun & Motivational Todo List with Calendar for Android written in Kotlin. Using Redux, coroutines, Firebase and Clean Architecture.
Stars: ✭ 234 (+277.42%)
Mutual labels:  calendar
Vue Datepicker Ui
Datepicker Component For Vue
Stars: ✭ 252 (+306.45%)
Mutual labels:  calendar
GCCalendar
A customizable calendar view for iOS 9+ written in Swift.
Stars: ✭ 53 (-14.52%)
Mutual labels:  calendar

lunar License

lunar是一款无第三方依赖的公历(阳历)、农历(阴历、老黄历)、佛历和道历工具,支持星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋、凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。

English

示例

// install
npm init -y
npm i typescript -D
npm i ts-node -D
npm i lunar-typescript
 
// test.ts
import {Solar} from 'lunar-typescript';
// import {Solar, Lunar, HolidayUtil} from 'lunar-typescript';
 
const solar = Solar.fromYmd(1986, 5, 29);
console.log(solar.toFullString());
console.log(solar.getLunar().toFullString());
 
// run
ts-node test.ts

输出结果:

1986-05-29 00:00:00 星期四 双子座
一九八六年四月廿一 丙寅(虎)年 癸巳(蛇)月 癸酉(鸡)日 子(鼠)时 纳音[炉中火 长流水 剑锋金 桑柘木] 星期四 北方玄武 星宿[斗木獬](吉) 彭祖百忌[癸不词讼理弱敌强 酉不会客醉坐颠狂] 喜神方位[巽](东南) 阳贵神方位[巽](东南) 阴贵神方位[震](正东) 福神方位[兑](正西) 财神方位[离](正南) 冲[(丁卯)兔] 煞[东]

文档

请移步至 http://6tail.cn/calendar/api.html

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].