Jiffy_klc
Jiffy_klc is a Jiffy extension package for lunar-solar date conversion.
Overview
This package was created using the Jiffy package and the klc package.
Getting Started
Add the following to your pubspec.yaml:
dependencies:
jiffy: ^6.3.1
jiffy_klc: ^1.0.0
Next, import:
import 'package:jiffy/jiffy.dart';
import 'package:jiffy_klc/jiffy_klc.dart';
Usage
/// Convert from the solar calendar to the lunar calendar
final Jiffy jiffy = Jiffy.parse('1997-09-23').toLunar();
final DateTime dateTime = jiffy.dateTime;
// print: 1997-08-22 00:00:00.000
/// Convert from the lunar calendar to the solar calendar
final Jiffy jiffy = Jiffy.parse('1997-09-23').toSolarFromLunar();
final DateTime dateTime = jiffy.dateTime;
// print: 1997-10-24 00:00:00.000
/// Convert from the solar calendar to the Gapja calendar
final String string = Jiffy.parse('1997-09-23').toSolarGapjaString();
// print: 정축년 기유월 무진일
/// Convert from the solar calendar to the SolarChineseGapJa calendar
final String string = Jiffy.parse('1997-09-23').toSolarChineseGapJaString();
// print: 丁丑年 己酉月 戊辰日