The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
WendellSun

lunar 一个命令行下的阴历阳历查询转换工具

  •  
  •   WendellSun · Jan 27, 2022 · 2682 views
    This topic created in 1579 days ago, the information mentioned may be changed or developed.

    https://github.com/xwjdsh/lunar

    写了个命令行的小工具,我用来看一下放假的日子,还有做自定义的别名配置,来记录和查看阴历日子,也能查询节气。使用效果如下,

    实现上比较简单,没有去折腾复杂的阴阳历转换算法,直接抓取了香港天文台的日历数据[1901-2100],然后用 Go 的 embed 打包一下,最后做动态的查询就好了。

    6 replies    2022-02-05 18:13:34 +08:00
    ericgui
        1
    ericgui  
       Jan 27, 2022
    牛啤
    lwx
        2
    lwx  
       Jan 27, 2022
    牛啤
    gadfly3173
        3
    gadfly3173  
       Jan 27, 2022
    不过中国农历本来就不能从公历准确推算出,只能靠天文观测吧
    selca
        4
    selca  
       Jan 27, 2022
    @gadfly3173 #3 有通过儒略日来进行计算的方法,GitHub 上看到过类似项目,我也写过一个 Java 的时间类,用于处理月历,直接是把.net 里面的数据搬过来了,也是 1901~2100 的
    tflins
        5
    tflins  
       Jan 27, 2022
    不错不错
    workman2021
        6
    workman2021  
       Feb 5, 2022 via iPhone
    https://github.com/Aquarian-Age/xa 万年不变的干支历法
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5085 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 90ms · UTC 09:46 · PVG 17:46 · LAX 02:46 · JFK 05:46
    ♥ Do have faith in what you're doing.