EastAsianLunisolarCalendar.GetCelestialStem(Int32) 方法

定义

计算甲子(60 年)循环中指定年份的天干。Calculates the celestial stem of the specified year in the sexagenary (60-year) cycle.

public:
 int GetCelestialStem(int sexagenaryYear);
public int GetCelestialStem (int sexagenaryYear);
member this.GetCelestialStem : int -> int
Public Function GetCelestialStem (sexagenaryYear As Integer) As Integer

参数

sexagenaryYear
Int32

一个从 1 到 60 的整数,用于表示甲子循环中的一年。An integer from 1 through 60 that represents a year in the sexagenary cycle.

返回

一个从 1 到 10 的数字。A number from 1 through 10.

异常

sexagenaryYear 小于 1 或大于 60。sexagenaryYear is less than 1 or greater than 60.

适用于