chinese-lunar-date API - v1.0.5
    Preparing search index...

    Function inMajorSolarTerm

    Low-level pure functions for calendar conversion. Most users should prefer the ChineseDate value object API. These functions are useful when you need fine-grained control or want to build custom logic on top of the core algorithms.

    • Get major solar term (中气) for a given JDE

      A major solar term (中气) occurs when the apparent solar longitude is a multiple of 30° starting from 330° (Z1=雨水, Z2=春分, ...).

      Parameters

      • jde: number

        Julian Ephemeris Day

      Returns SolarTermResult

      Object with term number (1-12) and solar longitude in degrees

      // Find which major solar term contains a given date
      const result = inMajorSolarTerm(jde)
      result.term // 1-12 (Z1=雨水, Z2=春分, ..., Z12=大寒)
      result.lon // solar longitude in degrees