A plugin to convert general calendar (Gregorian Calendar) to Javanese Calendar for Dart.
Indonesia is a country that has a variety of cultures and beliefs. Not only those, they also has their own local calendar. One of them come from Javanese ethnic, Javanese Calendar. It began to used in Java island since 1625 when Mataram Kingdom was led by Sultan Agung. Generally, the usage is as a basic to count good or bad days, divinatory systems, celebrations, and rites of passage as birth or death.
javanese_date_converter package as dependency in
dependencies: javanese_date_converter: ^0.0.1
javanese_date_converter to you Dart file
How to Use
JavaneseDate javaneseDate = JavaneseDate(day: 27, month: 7, year: 1999)
or you can use
DateTime with this way:
JavaneseDate javaneseDate = JavaneseDate.fromDateTime(DateTime.now());
Dinapitu is seven-day wuku cycle corresponds to day names in Gregorian. It consists of Sênèn, Selasa, Rêbo, Kêmis, Jemuwah, Sêtu, and Ngahad.
String dinapitu = javaneseDate.dinapitu;
Pasaran is five-day cycle consists of Pon, Wage, Kliwon, Lêgi, Pahing.
String pasaran = javaneseDate.pasaran.toString();
Wetonan is the combination of five-day pancawara cycle with the seven-day wuku week cycle.
String weton = javaneseDate.wetonan.weton; int neptu = javaneseDate.wetonan.neptu;