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

A Dart library to convert a date to Korean lunar calendar date.

example/klc_example.dart

import 'package:klc/klc.dart';

void main() {
  // param : year(년), month(월), day(일)
  setSolarDate(2022, 7, 10);

  // Lunar Date (ISO format)
  final lunar = getLunarIsoFormat();
  print(lunar);

  // Korean GapJa String
  final lunarGapja = getGapjaString();
  print(lunarGapja);

  // Chinese GapJa String
  final lunarChineseGapja = getChineseGapJaString();
  print(lunarChineseGapja);

  // just a line space
  print("");

  // param : year(년), month(월), day(일), intercalation(윤달여부)
  setLunarDate(2022, 6, 12, false);

  // Solar Date (ISO format)
  final solar = getSolarIsoFormat();
  print(solar);
}
4
likes
120
pub points
72%
popularity

Publisher

unverified uploader

A Dart library to convert a date to Korean lunar calendar date.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

sprintf

More

Packages that depend on klc