npdatetime 0.2.4

Astronomical calculator for Bikram Sambat calendar based on solar and lunar positions. High-performance Nepali (Bikram Sambat) datetime library with multi-language bindings
Documentation
1
2
3
4
5
6
7

// src/data/embedded.rs
include!(concat!(env!("OUT_DIR"), "/calendar_data.rs"));

pub fn get_days_in_month(year: i32, month: u8) -> Option<u8> {
    // Binary search or hash lookup in BS_CALENDAR_DATA
}