tithi_engine 1.0.9 copy "tithi_engine: ^1.0.9" to clipboard
tithi_engine: ^1.0.9 copied to clipboard

Accurate Vedic tithi, lunar month, and festival date calculator for any city worldwide. Pure Dart, no dependencies, 200-year accuracy (1900–2100).

example/example.dart

import 'package:tithi_engine/tithi_engine.dart';

void main() {
  final panchang = Panchang(MonthSystem.purnimant);

  // Date → Tithi
  final info = panchang.forDate(DateTime(2026, 2, 15), City.ujjain);
  print(info.displayName); // "Phalguna Krishna Trayodashi"

  // Festival date
  final shivaratri = panchang.dateFor(
      festivals.firstWhere((f) => f.name == 'Maha Shivaratri'),
      2026,
      City.ujjain);
  print('Maha Shivaratri 2026: ${shivaratri?.date}');

  // Tithi → Date
  final date = panchang.getDate(
      LunarMonth.bhadrapada, Paksha.krishna, 8, 2026, City.seattle);
  print('Janmashtami 2026 Seattle: $date');
}
1
likes
160
points
1.59k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Accurate Vedic tithi, lunar month, and festival date calculator for any city worldwide. Pure Dart, no dependencies, 200-year accuracy (1900–2100).

Repository (GitHub)
View/report issues
Contributing

Topics

#astronomy #calendar #hindu-calendar #tithi

License

Apache-2.0 (license)

More

Packages that depend on tithi_engine