qreki_dart 1.0.1
qreki_dart: ^1.0.1 copied to clipboard
A Dart package for accessing Rokuyo and the old Japanese calendar, '旧暦', enabling easy integration of traditional timekeeping into contemporary apps.
qreki-dart #
A Dart package for accessing Rokuyo and the old Japanese calendar, '旧暦', enabling easy integration of traditional timekeeping into contemporary apps.
dart pakcage is here: qreki_dart
Features #
You can get these values.
Usage #
import 'package:qreki_dart/qreki_dart.dart';
import 'package:qreki_dart/src/helpers/to_ordinal.dart';
void main() {
print(toOrdinal(DateTime(2017, 10, 17)));
final k = Kyureki.fromYMD(2017, 10, 17);
print(k.toString());
// '2017年8月28日'
print(k.rokuyouValue);
// '大安'
final date = DateTime(2017, 10, 21);
final k2 = Kyureki.fromDate(date);
print(k2.toString());
// '2017年9月2日'
print(k2.rokuyouValue);
// '仏滅'
// 閏月
final k3 = Kyureki.fromYMD(2020, 6, 14);
// '2020年4月23日'
print(k3.toString());
// '友引'
print(k3.rokuyouValue);
}
Limitations #
- Currently, JST is supported.
Reference #
This program is a dart port of Hideaki Takano's QREKI.AWK.
The original qreki.awk and qreki.doc, which formed the basis for this program, are included in the src/qrsamp11 directory. Additionally, this project greatly benefited from the Python port by Shunsuke Ito, known as qreki_py 🎉. Thank you!
For more information on qreki.awk, please visit