All Projects → 6tail → Lunar Java

6tail / Lunar Java

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

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Lunar Java

Chinese Lunar Calendar For Mac
Chinese Lunar Calendar for Mac
Stars: ✭ 150 (-9.64%)
Mutual labels:  calendar
Ionic Calendar
A calendar directive for Ionic framework
Stars: ✭ 160 (-3.61%)
Mutual labels:  calendar
Xk Time
xk-time 是时间转换,时间计算,时间格式化,时间解析,日历,时间cron表达式和时间NLP等的工具,使用Java8,线程安全,简单易用,多达70几种常用日期格式化模板,支持Java8时间类和Date,轻量级,无第三方依赖。
Stars: ✭ 162 (-2.41%)
Mutual labels:  calendar
Air Datepicker
Lightweight, dependency-free JavaScript datepicker.
Stars: ✭ 1,913 (+1052.41%)
Mutual labels:  calendar
Cal
Go (golang) calendar library for dealing with holidays and work days
Stars: ✭ 158 (-4.82%)
Mutual labels:  calendar
Time
Building a better date/time library for Swift
Stars: ✭ 1,983 (+1094.58%)
Mutual labels:  calendar
Alfred Gcal
View Google Calendar events in Alfred
Stars: ✭ 147 (-11.45%)
Mutual labels:  calendar
Vue Hash Calendar
移动端日期、时间选择插件,日期选择面板以日历形式展示。上下滑动切换周/月模式。支持两种模式:1,月模式,左右滑动切换月份。2、周模式,左右滑动切换周。
Stars: ✭ 163 (-1.81%)
Mutual labels:  calendar
Xamarin.plugin.calendar
Calendar plugin for Xamarin.Forms
Stars: ✭ 159 (-4.22%)
Mutual labels:  calendar
Meetingbar
Your next meeting always before your eyes in the macOS menu bar
Stars: ✭ 2,621 (+1478.92%)
Mutual labels:  calendar
Calendar Ios
Calendar View
Stars: ✭ 154 (-7.23%)
Mutual labels:  calendar
Diary
Android personal diary - forked from http://git.savannah.gnu.org/cgit/diary.git
Stars: ✭ 158 (-4.82%)
Mutual labels:  calendar
Toast Ui.vue Calendar
Toast UI Calendar for Vue
Stars: ✭ 162 (-2.41%)
Mutual labels:  calendar
Wx calendar
微信小程序-日历组件 📅
Stars: ✭ 2,008 (+1109.64%)
Mutual labels:  calendar
Things Calendar
Simple but elegant datepicker for the web — inspired by Things for mac
Stars: ✭ 165 (-0.6%)
Mutual labels:  calendar
Quasar Ui Qcalendar
QCalendar - Quasar App Extension, Vue CLI plug-in and UMD distributions available
Stars: ✭ 148 (-10.84%)
Mutual labels:  calendar
Kvkcalendar
A most fully customization calendar and timeline library for iOS 📅
Stars: ✭ 160 (-3.61%)
Mutual labels:  calendar
Rrule
JavaScript library for working with recurrence rules for calendar dates as defined in the iCalendar RFC and more.
Stars: ✭ 2,249 (+1254.82%)
Mutual labels:  calendar
React Datepicker
📅 React DatePicker Library (Flexible, Reusable)
Stars: ✭ 165 (-0.6%)
Mutual labels:  calendar
Bonsai
Self-hosted family wiki engine / photoalbum
Stars: ✭ 162 (-2.41%)
Mutual labels:  calendar

lunar License

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

支持java 1.5及以上版本。

干支纪年:支持以正月初一计,支持以立春当日计,支持以立春交接时刻计。

干支纪月:支持以节当日计,支持以节交接时刻计。

English

正式版本

<dependency>
  <groupId>cn.6tail</groupId>
  <artifactId>lunar</artifactId>
  <version>1.1.18</version>
</dependency>

快照版本

<repository>
  <id>sonatype</id>
  <url>https://oss.sonatype.org/content/groups/public/</url>
  <snapshots>
    <enabled>true</enabled>
    <updatePolicy>daily</updatePolicy>
    <checksumPolicy>warn</checksumPolicy>
  </snapshots>
</repository>
<dependency>
  <groupId>cn.6tail</groupId>
  <artifactId>lunar</artifactId>
  <version>1.1.0-SNAPSHOT</version>
</dependency>

下载jar

如果使用jar,建议下载最新的版本,bug将得到及时的修复。

Download

示例

import com.nlf.calendar.Lunar;
 
/**
 * 阴历示例
 *
 */
public class LunarSample{
  public static void main(String[] args){
    //今天
    //Lunar date = new Lunar();
     
    //指定阴历的某一天
    Lunar date = new Lunar(1986,4,21);
    System.out.println(date.toFullString());
    System.out.println(date.getSolar().toFullString());
  }
}

输出结果:

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