qreki_dart 0.1.0 copy "qreki_dart: ^0.1.0" to clipboard
qreki_dart: ^0.1.0 copied to clipboard

Dart package for 旧暦, the old calendar.

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);
  // '仏滅'
}

Limitations #

  • Currently, JST is supported.

Reference #

This package is fully based on qreki_py 🎉. Thank you!

9
likes
140
points
186
downloads

Publisher

unverified uploader

Weekly Downloads

Dart package for 旧暦, the old calendar.

Repository (GitHub)
View/report issues

Topics

#qreki #calendar #lunar #datetime #dart

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

More

Packages that depend on qreki_dart