Last updated:
0 purchases
javanese date converter
javanese_date_converter #
A plugin to convert general calendar (Gregorian Calendar) to Javanese Calendar for Dart.
Overview #
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.
Getting Started #
Dependency #
Add javanese_date_converter package as dependency in pubspec.yaml
dependencies:
javanese_date_converter: <latest version>
copied to clipboard
Import #
Import javanese_date_converter to you Dart file
import 'package:javanese_date_converter/javanese_date_converter';
copied to clipboard
How to Use #
Initialization #
JavaneseDate javaneseDate = JavaneseDate(day: 27, month: 7, year: 1999)
copied to clipboard
or you can use DateTime with this way:
JavaneseDate javaneseDate = JavaneseDate.fromDateTime(DateTime.now());
copied to clipboard
Feature #
Dinapitu
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;
copied to clipboard
Pasaran
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;
copied to clipboard
Wetonan
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;
copied to clipboard
Reference #
Karjanto, N. and F. Beauducel. “An ethnoarithmetic excursion into the Javanese calendar.” (2020).
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.