{"id":18737479,"url":"https://github.com/6tail/lunar-java","last_synced_at":"2025-05-15T02:03:22.713Z","repository":{"id":41211667,"uuid":"138385487","full_name":"6tail/lunar-java","owner":"6tail","description":"日历、公历(阳历)、农历(阴历、老黄历)、佛历、道历，支持节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.","archived":false,"fork":false,"pushed_at":"2025-03-05T13:04:30.000Z","size":805,"stargazers_count":783,"open_issues_count":30,"forks_count":175,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-06T20:03:50.573Z","etag":null,"topics":["calendar","java","lunar"],"latest_commit_sha":null,"homepage":"http://6tail.cn/calendar/api.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/6tail.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-23T08:41:14.000Z","updated_at":"2025-04-06T07:58:57.000Z","dependencies_parsed_at":"2023-02-18T05:45:57.843Z","dependency_job_id":"6f74c64b-48de-4b9a-a2b9-c7090feb92e5","html_url":"https://github.com/6tail/lunar-java","commit_stats":{"total_commits":148,"total_committers":1,"mean_commits":148.0,"dds":0.0,"last_synced_commit":"b6bde78e5992e9ef77d2ccd64e3d4f82a0aba9bc"},"previous_names":[],"tags_count":70,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6tail%2Flunar-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6tail%2Flunar-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6tail%2Flunar-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6tail%2Flunar-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/6tail","download_url":"https://codeload.github.com/6tail/lunar-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248790528,"owners_count":21162027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","java","lunar"],"created_at":"2024-11-07T15:25:25.557Z","updated_at":"2025-05-15T02:03:22.704Z","avatar_url":"https://github.com/6tail.png","language":"Java","readme":"# lunar [![License](https://img.shields.io/badge/license-MIT-4EB1BA.svg?style=flat-square)](https://github.com/6tail/lunar-java/blob/master/LICENSE)\n\nlunar是一款无第三方依赖的公历(阳历)、农历(阴历、老黄历)、道历、佛历工具，支持星座、儒略日、干支、生肖、节气、节日、彭祖百忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶、法定节假日及调休等。\n\n\u003e 支持java 1.5及以上版本。\n\n\u003e 干支纪年：支持以正月初一计，支持以立春当日计，支持以立春交接时刻计。\n\n\u003e 干支纪月：支持以节当日计，支持以节交接时刻计。\n\n[English](https://github.com/6tail/lunar-java/blob/master/README_EN.md)\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecn.6tail\u003c/groupId\u003e\n  \u003cartifactId\u003elunar\u003c/artifactId\u003e\n  \u003cversion\u003e1.7.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### 下载jar\n\n如果使用jar，建议下载最新的版本，bug将得到及时的修复。\n\n[Download](https://github.com/6tail/lunar-java/releases)\n\n## 示例\n\n    import com.nlf.calendar.Lunar;\n     \n    /**\n     * 阴历示例\n     *\n     */\n    public class LunarSample{\n      public static void main(String[] args){\n        //今天\n        //Lunar date = new Lunar();\n         \n        //指定阴历的某一天\n        Lunar date = new Lunar(1986,4,21);\n        System.out.println(date.toFullString());\n        System.out.println(date.getSolar().toFullString());\n      }\n    }\n\n输出结果：\n\n    一九八六年四月廿一 丙寅(虎)年 癸巳(蛇)月 癸酉(鸡)日 子(鼠)时 纳音[炉中火 长流水 剑锋金 桑柘木] 星期四 北方玄武 星宿[斗木獬](吉) 彭祖百忌[癸不词讼理弱敌强 酉不会客醉坐颠狂] 喜神方位[巽](东南) 阳贵神方位[巽](东南) 阴贵神方位[震](正东) 福神方位[兑](正西) 财神方位[离](正南) 冲[(丁卯)兔] 煞[东]\n    1986-05-29 00:00:00 星期四 双子座\n\n## 文档\n\n请移步至 [https://6tail.cn/calendar/api.html](https://6tail.cn/calendar/api.html \"https://6tail.cn/calendar/api.html\")\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=6tail/lunar-java\u0026type=Date)](https://star-history.com/#6tail/lunar-java\u0026Date)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6tail%2Flunar-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F6tail%2Flunar-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6tail%2Flunar-java/lists"}