View Code? Open in Web Editor
NEW
A package that helps convert Vietnamese Lunar Calendar to Solar and vice versa.
Home Page: https://pub.dev/packages/vnlunar
License: BSD 3-Clause "New" or "Revised" License
vnlunar's Introduction
- ๐ Hi, Iโm @nguyen703
- ๐ Iโm interested in coding and exploring new things :D
- ๐ซ How to reach me:
vnlunar's People
Contributors
Watchers
vnlunar's Issues
Problem:
- User must split parameters to correctly convert solar to lunar. Why do you use the
DateTime
type?
- Output does not demonstrate. Always remember what index describes day or month.
Suggestion:
- You can use
DateTime
or an object instead of splitting parameters.
- You can define
LunarDateTime
class to describe lunar DateTime instead of an array.
final DateTime inputDate = ... //
/// class LunarDateTime {
/// public day;
/// public month;
/// public year;
/// ... everything in here
/// }
final LunarDateTime lunarDateTime = convertSolar2Lunar(inputDate);
// revert lunar -> solar
final DateTime solarDateTime = convertLunar2Solar(lunarDateTime);