mirror of
https://github.com/acamarata/hijri-core-dart.git
synced 2026-06-30 18:54:27 +00:00
843 B
843 B
hijri_core
Hijri/Gregorian calendar conversion for Dart and Flutter. Pluggable engine system with built-in Umm al-Qura (UAQ) and FCNA calendar implementations. Zero dependencies.
Install
dependencies:
hijri_core: ^1.0.0
import 'package:hijri_core/hijri_core.dart';
final hijri = toHijri(DateTime.utc(2025, 3, 1));
print('${hijri!.hy}/${hijri.hm}/${hijri.hd}'); // 1446/9/1
final greg = toGregorian(1446, 9, 1);
print(greg!.toIso8601String().substring(0, 10)); // 2025-03-01
Contents
- Quickstart Guide — install, first call, engine selection
- Advanced Usage — pluggable engines, custom calendars
- API Reference — full function and type reference
- Examples — real-world snippets
- Contributing