DatePrototype.setUTCMonth(Object, Double, Object) 方法

定义

DateObject 的月份值设置为以协调世界时 (UTC) 表示的指定月份值。Sets the month value of a DateObject to the specified month value, expressed in Coordinated Universal Time (UTC).

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

public:
 static double setUTCMonth(System::Object ^ thisob, double dmonth, System::Object ^ date);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_setUTCMonth)]
public static double setUTCMonth (object thisob, double dmonth, object date);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_setUTCMonth)>]
static member setUTCMonth : obj * double * obj -> double
Public Shared Function setUTCMonth (thisob As Object, dmonth As Double, date As Object) As Double

参数

thisob
Object

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

dmonth
Double

要为 thisob 设置的月份值。The month value to set for thisob.

date
Object

要为 thisob 设置的日期值。The date value to set for thisob.

返回

Double

设置该值后 thisob 的新值(以 UTC 表示)。The new value of thisob after the value is set, expressed in UTC.

属性

适用于

另请参阅