tibetan_calendar 2.0.0
tibetan_calendar: ^2.0.0 copied to clipboard
Tibetan Calendar package provides easy way to get Tibetan date and year based on Western date. Includes full support for Tibetan date conversion, Losar calculations, Rabjung cycles, and year attributes.
tibetan_calendar #
Tibetan Calendar
Credit and resources #
This packages is inspired and taken help from below resources.
- https://gitlab.com/TibetanCalendar/TibetanDateCalcualtor
- https://kunpen.ngalso.org/en/tibetan-calendar/tibetan-astrology-calendar-introduction/
- http://www.tactus.dk/tacom/calendar5.htm
Tibetan Calendar
Demo #
Lunar calendar library for Dart Native. Computing lunar calendar by timezone. Download app from PlayStore.
| Tibetan Calendar | Western Calendar |
Add package #
tibetan_calendar: 1.0.0
Import the library: #
import 'package:tibetan_calendar/tibetan_calendar.dart';
Convert calendar from from western calendar to tibetan calendar.
For example:
var now = DateTime.now();
tibDate = TibetanCalendar.getTibetanDate(DateTime(now.year, now.month, now.day));
print(tibDate.year); // 2148
print(tibDate.month); // 4
print(tibDate.day); // 25
yearAttribute = TibetanCalendar.getYearAttributes(tibetanYear:tibDate.year);
print(yearAttribute.animal); // Ox
print(yearAttribute.element); // Iron
If you have any questions, feedback or ideas, feel free to create an issue. If you enjoy this project, I'd appreciate your 🌟 on GitHub.
