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等效于指定的日期和时间。

属性

适用于

另请参阅