EastAsianLunisolarCalendar.GetTerrestrialBranch(Int32) 方法
定义
计算甲子(60 年)循环中指定年份的地支。Calculates the terrestrial branch of the specified year in the sexagenary (60-year) cycle.
public:
int GetTerrestrialBranch(int sexagenaryYear);
public int GetTerrestrialBranch (int sexagenaryYear);
member this.GetTerrestrialBranch : int -> int
Public Function GetTerrestrialBranch (sexagenaryYear As Integer) As Integer
参数
- sexagenaryYear
- Int32
一个从 1 到 60 的整数,用于表示甲子循环中的一年。An integer from 1 through 60 that represents a year in the sexagenary cycle.
返回
一个从 1 到 12 的整数。An integer from 1 through 12.
例外
sexagenaryYear 小于 1 或大于 60。sexagenaryYear is less than 1 or greater than 60.