getChineseZodiac static method

String getChineseZodiac(
  1. DateTime dateTime
)

生肖:按公历年粗判(年份 % 12,从「猴」起)。

不做立春节气切换(与 blankj 同口径)——1 月出生的农历「属相未换」 场景不在此工具的判定范围内。

Implementation

static String getChineseZodiac(DateTime dateTime) =>
    getChineseZodiacByYear(dateTime.year);