DatePrototype.setUTCMilliseconds(Object, Double) 方法

定义

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

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

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

参数

thisob
Object

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

dmsec
Double

要为 thisob 设置的毫秒值。The millisecond value to set for thisob.

返回

Double

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

属性

适用于

另请参阅