EastAsianLunisolarCalendar.GetYear(DateTime) 方法

定义

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

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

参数

time
DateTime

要读取的 DateTimeThe DateTime to read.

返回

一个整数,用于表示指定的 DateTime 中的年份。An integer that represents the year in the specified DateTime.

适用于