Skip to content

C

A C11 library for Bikram Sambat dates: conversion to and from the Gregorian calendar, arithmetic, formatting and parsing, and the patro in its own library. It allocates nothing, keeps no global state and needs nothing but a C compiler, so it also builds into Zig projects and into extensions for languages that call C.

The target is the speed of the Rust library, measured on the same machine in the same session, with no undefined behaviour for any input. Like every port, it runs the shared test data from the hub before it ships.

Follow the work at sanamhub/nepdate-c.