Lunar calendar library for Dart Native. Computing lunar calendar by timezone.
Lunar Japanese | Lunar Vietnamese |
Import the library:
import 'package:lunar_calendar/lunar_calendar.dart';
Convert calendar from one to another between lunar calendar and solar calendar.
For example:
List<int> lunarVi = CalendarConverter.solarToLunar(2020,12,14, Timezone.Vietnamese);
List<int> lunarJa = CalendarConverter.solarToLunar(2020,12,14, Timezone.Japanese);
print(lunarVi); //[1, 11, 2020]
print(lunarJa); //[30, 10, 2020]