LunarDate class

Represents a date in the Chinese lunar calendar.

Includes the Heavenly Stems and Earthly Branches (GanZhi) cycle, zodiac animal, and Chinese character representations.

Constructors

LunarDate({required int year, required int month, required int day, required bool isLeapMonth, required String yearGanZhi, required String monthGanZhi, required String dayGanZhi, required String zodiac, required String yearChinese, required String monthChinese, required String dayChinese})
const

Properties

day int
The lunar day of the month.
final
dayChinese String
The day in Chinese characters (e.g. "初一").
final
dayGanZhi String
The day expressed in the GanZhi cycle.
final
fullChinese String
The full Chinese representation combining month and day (e.g. "正月初一").
no setter
hashCode int
The hash code for this object.
no setterinherited
isLeapMonth bool
Whether this month is a leap month in the lunar calendar.
final
month int
The lunar month (negative value indicates a leap month).
final
monthChinese String
The month in Chinese characters (e.g. "正月").
final
monthGanZhi String
The month expressed in the GanZhi cycle.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
year int
The lunar year number.
final
yearChinese String
The year in Chinese characters.
final
yearGanZhi String
The year expressed in the GanZhi (Heavenly Stems & Earthly Branches) cycle.
final
zodiac String
The Chinese zodiac animal for this year.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited