EastAsianLunisolarCalendar.GetMonth(DateTime) 方法

定义

返回指定日期中的月份。Returns the month in the specified date.

public:
 override int GetMonth(DateTime time);
public override int GetMonth (DateTime time);
override this.GetMonth : DateTime -> int
Public Overrides Function GetMonth (time As DateTime) As Integer

参数

time
DateTime

要读取的 DateTimeThe DateTime to read.

返回

一个 1 到 13 之间的整数,用于表示 time 参数中指定的月份。An integer from 1 to 13 that represents the month specified in the time parameter.

适用于