DatePrototype.getYear(Object) 方法

定义

获取以协调世界时 (UTC) 表示的指定 DateObject 的年份值。Gets the year value of the specified DateObject, expressed in Coordinated Universal Time (UTC).

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static double getYear(System::Object ^ thisob);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_getYear)]
[Microsoft.JScript.NotRecommended("getYear")]
public static double getYear (object thisob);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_getYear)>]
[<Microsoft.JScript.NotRecommended("getYear")>]
static member getYear : obj -> double
Public Shared Function getYear (thisob As Object) As Double

参数

thisob
Object

此方法所作用于的对象。The object that this method is acting upon.

返回

Double

以 UTC 表示的 thisob 的年份值。The year value of thisob, expressed in UTC.

属性

适用于

另请参阅