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 於指定的日期和時間。

屬性

適用於

另請參閱