GithubHelp home page GithubHelp logo

liweitianux / ccalendar Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 3.0 955 KB

Chinese Calendar in calendar(1) for BSD, Linux & macOS

License: Other

Makefile 1.56% Roff 7.52% C 88.35% C++ 2.04% Shell 0.53%
calendar chinese astronomical-algorithms reminder calendrical-calculations unix bsd

ccalendar's Introduction

Chinese Calendar

Build Status

A Chinese calendar based on the UNIX calendar(1) utility for BSD, Linux, and macOS systems.

The Chinese calendar calculation, as well as the Sun and Moon calculations, is implemented with astronomical algorithms by referring to Calendrical Calculations: The Ultimate Edition (4th Edition) by Edward M. Reingold and Nachum Dershowitz.

This utility was derived from the calendar(1) in DragonFly BSD on 2019-11-16. It has since been rewritten to be more clean, understandable, and extensible. Currently, the Gregorian, Julian, and Chinese calendars are supported. Some updates in FreeBSD, OpenBSD, NetBSD, and Debian Linux have also been integrated.

See also the calendar(1) man page.

Welcome to try this utility, report issues, and contribute fixes and improvements :D

Installaion

Requirements:

  • GCC
  • GNU Make

Build and installation:

  1. make [PREFIX=/usr/local]
  2. sudo make install [PREFIX=/usr/local]

References

[RD18] Edward M. Reingold and Nachum Dershowitz, Calendrical Calculations: The Ultimate Edition (4th Edition). Cambridge University Press, 2018. ISBN: 9781107057623

License

The 3-Clause BSD License

Copyright (c) 2019-2020 The DragonFly Project.

ccalendar's People

Contributors

liweitianux avatar liyishuai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ccalendar's Issues

March Equinox != 春分

calendar -s chinese

春分 (Chūnfēn ): 0°, 2020-03-20 11:49:33 +08:00

calendar -s sun -U +08:00

March Equinox : 0°, 2020-03-20 11:49:32

Where does this 1-second difference come from?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.