vnlunar
1.2.0, released 7 weeks ago by an unverified publisher
Convert between Vietnamese Lunar Calendar and Solar calendars.
What it does
Provides classes and functions to convert dates between the solar calendar and the Vietnamese lunar calendar. It supports calculations for years between 1800 and 2199, including handling leap months.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to convert solar dates to Vietnamese lunar dates in your Flutter or Dart app.
- You need to convert Vietnamese lunar dates (including leap months) back to solar dates.
Skip it when
- You need lunar calendar conversions for systems other than the Vietnamese lunar calendar.
- You need dates outside the supported range of 1800 to 2199.
Strengths
- Supports classes (Lunar and Solar) for clean object-oriented usage.
- Handles leap months accurately for the Vietnamese lunar calendar.
- No external dependencies.
Weaknesses
- Limited to the 1800-2199 year range.
- Recommended only for the Vietnamese lunar calendar system due to timezone and coordinate dependencies.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
final lunar = Lunar(createdFromSolar: true, date: DateTime(1998, 6, 18));
final solar = Solar(DateTime(1998, 6, 18));
final convertedSolarFromLunar = lunar.getSolar();Alternatives
Packages that do the same job and could replace vnlunar.
- lunar
A calendar library supporting Solar, Chinese Lunar, Taoist, and Buddhist calendars.
74Compare - full_calender
Converts between solar and lunar calendars, Julian days, and calculates stems and branches.
47Compare - hijri
Convert between Hijri (Umm al‑Qura) and Gregorian dates with locale support.
66Compare - delta_to_html
Convert Delta format to HTML strings.
49Compare