DateConstructor.UTC 方法

定义

将指定日期和时间转换为其等效的 Double

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

public:
 static double UTC(System::Object ^ year, System::Object ^ month, System::Object ^ date, System::Object ^ hours, System::Object ^ minutes, System::Object ^ seconds, System::Object ^ ms);
[Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Date_UTC)]
public static double UTC (object year, object month, object date, object hours, object minutes, object seconds, object ms);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Date_UTC)]
public static double UTC (object year, object month, object date, object hours, object minutes, object seconds, object ms);
[<Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Date_UTC)>]
static member UTC : obj * obj * obj * obj * obj * obj * obj -> double
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Date_UTC)>]
static member UTC : obj * obj * obj * obj * obj * obj * obj -> double
Public Shared Function UTC (year As Object, month As Object, date As Object, hours As Object, minutes As Object, seconds As Object, ms As Object) As Double

参数

year
Object

要转换的日期和时间的年度。

month
Object

要转换的日期和时间的月份。

date
Object

要转换的日期和时间的日期。

hours
Object

要转换的日期和时间的小时数。

minutes
Object

要转换的日期和时间的分钟数。

seconds
Object

要转换的日期和时间的秒数。

ms
Object

要转换的日期和时间的毫秒数。

返回

等效于指定日期和时间的 Double

属性

适用于

另请参阅