DateConstructor.UTC Method

Definition

Converts the specified date and time to its Double equivalent.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

year
Object

The year of the date and time to convert.

month
Object

The month of the date and time to convert.

date
Object

The date of the date and time to convert.

hours
Object

The hours of the date and time to convert.

minutes
Object

The minutes of the date and time to convert.

seconds
Object

The seconds of the date and time to convert.

ms
Object

The milliseconds of the date and time to convert.

Returns

A Double equivalent of the specified date and time.

Attributes

Applies to

See also