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: <latest version>
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;
Pancawara is five-day cycle known as Pasaran that consists of Pon, Wage, Kliwon, Lêgi, Pahing.
Pasaran pasaran = javaneseDate.pasaran; Map<String, dynamic> associatedSymbols = pasaran.associatedSymbols;
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;