{"id":23239432,"url":"https://github.com/r32/lunar","last_synced_at":"2026-03-20T01:03:33.940Z","repository":{"id":78669610,"uuid":"77941302","full_name":"R32/lunar","owner":"R32","description":"农历/公历转换(1900~2100)","archived":false,"fork":false,"pushed_at":"2025-06-09T17:18:28.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T18:26:33.675Z","etag":null,"topics":["lunar"],"latest_commit_sha":null,"homepage":"","language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/R32.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-01-03T18:12:16.000Z","updated_at":"2025-06-09T17:18:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"09bcd9fe-9e2f-4254-baa4-27b8c445688e","html_url":"https://github.com/R32/lunar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/R32/lunar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R32%2Flunar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R32%2Flunar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R32%2Flunar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R32%2Flunar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/R32","download_url":"https://codeload.github.com/R32/lunar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R32%2Flunar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28544901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T14:59:57.589Z","status":"ssl_error","status_checked_at":"2026-01-18T14:59:46.540Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["lunar"],"created_at":"2024-12-19T04:28:13.427Z","updated_at":"2026-01-18T17:33:30.780Z","avatar_url":"https://github.com/R32.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lunar\r\n-----\r\n\r\n一个简单的农历/公历的转换\r\n\r\n### Features\r\n\r\n* 只提供简单的转换, 目前暂时不提供节气。\r\n\r\n* 使用了整数缓存避免了每次都从 1900 年开始累加\r\n\r\n### Usage\r\n\r\n通过公历得到农历\r\n\r\n```haxe\r\n// 提供一个公历的 Date 值为参数\r\nvar lunar = Lunar.make(Date.now());\r\ntrace(lunar.toString());\r\n```\r\n\r\n通过农历获得公历\r\n\r\n```haxe\r\n// 最后的参数, 表示提供的月份是否为闰月, 如果你不清楚设 false 就好了\r\nvar lunar = Lunar.spec(2017, 1, 1, false);\r\n// 返回 2017年大年初一 所对应公历 Date 值\r\ntrace(lunar.time);\r\n```\r\n\r\n ### Issues\r\n\r\n * 目前由于 hl 与 neko 平台的 Date 被限制在 1970~2038 之间, 因此这个范围之外的时间将出错","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr32%2Flunar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr32%2Flunar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr32%2Flunar/lists"}