utc()

Creates a date using universal time.

This function is valid in v2.1.0 to v2.13.1. This function has been downloaded 22 times.

Parameters

{Date|number|string} yearOrValue
Either a Date object whose properties will be interpreted as UTC properties, or the number of milliseconds since the beginning of Jaunary 1, 1970 GMT, or a string version of the date, or the year. If this is to be understood as the year additional arguments must also be passed.
{number=} opt_month Optional
An integer between 0 and 11 representing the month.
{number=} opt_day Optional
An integer between 1 and 31 representing the month.
{number=} opt_hour Optional
An integer between 0 and 23 representing the hour.
{number=} opt_min Optional
An integer between 0 and 59 representing the minute.
{number=} opt_sec Optional
An integer between 0 and 59 representing the second.
{number=} opt_ms Optional
An integer between 0 and 999 representing the millisecond.

Returns

{Date}
Specified UTC date/time as a Date object.