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
8
9
10
11
use npdatetime::prelude::*;

fn main() -> Result<()> {
    let date = NepaliDate::new(2081, 1, 1)?;

    println!("Standard: {}", date);
    println!("Formatted (%Y-%m-%d): {}", date.format("%Y-%m-%d"));
    println!("Formatted (%d %B %Y): {}", date.format("%d %B %Y"));

    Ok(())
}