Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kalendarilo

Calculate Chinese lunisolar calendar using accurate astronomical data (data/TDBtimes.txt from https://github.com/ytliu0/ChineseCalendar).

Examples

See the docs for more!

use kalendarilo::Date;
use kalendarilo::chinese::{Annus, Month::*};

let date = Date::from_gregorian(2000, 1, 1).unwrap();

assert_eq!(6, date.day_of_week()); // Saturday
assert_eq!(2451545, date.jdn());

let annus = Annus::from_date(date).unwrap();

assert_eq!(Ok((1999, Common(11), 25)), annus.ymd_for(date)); // 冬月廿五

About

Calculate Chinese lunisolar calendar using accurate astronomical data

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages