DatePrototype.setUTCDate(Object, Double) 方法

定义

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

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

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

参数

thisob
Object

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

ddate
Double

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

返回

Double

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

属性

适用于

另请参阅