DatePrototype.setTime(Object, Double) 方法

定义

DateObject 的时间值设置为指定的时间值。Sets the time value of a DateObject to the specified time value.

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

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

参数

thisob
Object

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

time
Double

要为 thisob 设置的时间值。The time value to set for thisob.

返回

Double

设置该值后 thisob 的新值。The new value of thisob after the value is set.

属性

适用于

另请参阅