Utc 0

The Date.UTC() method accepts parameters similar to the Date constructor, but treats them as UTC. It returns the number of milliseconds since January 1, 1970, 00:00:00 UTC.

UTC (Coordinated Universal Time) is one of the well-known names of UTC+0 time zone which is 0h. Ahead of UTC (Coordinated Universal Time). It's used as the standard time. Time difference to GMT/UTC No UTC/GMT offsets (UTC+00). The westernmost point where UTC with no DST is applied is Bjargtangar, at the northwest peninsula of Iceland (24°32' W). Time used there is 1 hour and 38 minutes ahead of physical time. Eclipse for j2ee developers. This is the greatest deviation from physical time for UTC+00:00 with no DST.

  • By convention, the world's weather communities use a twenty four hour clock, similar to 'military' time based on the 0° longitude meridian, also known as the Greenwich meridian. Prior to 1972, this time was called Greenwich Mean Time (GMT) but is now referred to as Coordinated Universal Time or Universal Time Coordinated (UTC).
  • 0 AM ( 0:00 ) Universal Time to Your Local Time and Worldwide Time Conversions. UTC +0. 0:00 AM Universal Time conversion to worldwide times: Adelaide.
  • The UTC method returns the number of milliseconds between a specified date and midnight of January 1, 1970, according to universal time. Tip: The Universal Coordinated Time (UTC) is the time set by the World Time Standard. Note: UTC time is the same as GMT time.

Syntax

year
A full year.
monthOptional
An integer between 0 (January) and 11 (December) representing the month. Since ECMAScript 2017 it defaults to 0 if omitted. (Up until ECMAScript 2016, month was a required parameter. As of ES2017, it no longer is.)
dayOptional
An integer between 1 and 31 representing the day of the month. If omitted, defaults to 1.
hourOptional
An integer between 0 and 23 representing the hours. If omitted, defaults to 0.
minuteOptional
An integer between 0 and 59 representing the minutes. If omitted, defaults to 0.
secondOptional
An integer between 0 and 59 representing the seconds. If omitted, defaults to 0.
millisecondOptional
An integer between 0 and 999 representing the milliseconds. If omitted, defaults to 0.

Return value

A number representing the number of milliseconds for the given date since January 1, 1970, 00:00:00, UTC.

Description

UTC() takes comma-delimited date and time parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified date and time.

Years between 0 and 99 are converted to a year in the 20th century (1900 + year). For example, 95 is converted to the year 1995.

The UTC() method differs from the Date constructor in two ways:

  1. Date.UTC() uses universal time instead of the local time.
  2. Date.UTC() returns a time value as a number instead of creating a Date object.

If a parameter is outside of the expected range, the UTC() method updates the other parameters to accommodate the value. For example, if 15 is used for month, the year will be incremented by 1 (year + 1) and 3 will be used for the month.

UTC() is a static method of Date, so it's called as Date.UTC() rather than as a method of a Date instance.

Examples

Using Date.UTC()

The following statement creates a Date object with the arguments treated as UTC instead of local:

Specifications

Specification
ECMAScript Language Specification (ECMAScript)
#sec-date.utc

Browser compatibility

BCD tables only load in the browser

Compatibility notes

Date.UTC() with fewer than two arguments

When providing less than two arguments to Date.UTC(), ECMAScript 2017 requires that NaN is returned. Engines that weren't supporting this behavior have been updated (see bug 1050755, ecma-262 #642).

See also

US, Canada, Mexico Time Zones
Utc

Atlantic Daylight Time (ADT) • Eastern Daylight Time (EDT) • Central Daylight Time (CDT) • Mountain Daylight Time (MDT) • Pacific Daylight Time (PDT) • Alaska Daylight Time (AKDT) • Hawaii Time • Arizona • Saskatoon • New York • Toronto • Mexico City • San Francisco • Chicago • Houston • Miami • Phoenix • Halifax • Denver • Monterrey • Chihuahua


Europe Time Zones

Greenwich Mean Time (GMT) • British Summer Time (BST) • Western European Summer Time (WEST) • Central European Summer Time (CEST) • Eastern European Summer Time (EEST) • London • Paris • Berlin • Athens • Warsaw • Kiev • Belarus • Moscow • Madrid • Stockholm • Amsterdam • Istanbul


Utc 0250
Australia, New Zealand Time Zones

AEST • ACST • AWST •New Zealand Time (NZT) • Queensland • Adelaide • Brisbane • Canberra • Melbourne • Perth • Sydney • Auckland • Fiji • Solomon Islands • Papua New Guinea


Asia Time Zones

India • Pakistan • China • UAE • Japan • Korea • Philippines • Thailand • Hong Kong • Taiwan • Malaysia • Singapore • Jakarta • Bangladesh • Sri Lanka • Nepal • Kuwait • Saudi Arabia • Viet Nam • Oman • Israel • Jordan • Beijing • Bangalore • Kuala Lumpur • Manila • Tokyo • Seoul • Karachi • Dubai


Africa Time Zones
Utc

West Africa Time (WAT) • Central Africa Time (CAT) • East Africa Time (EAT) • Egypt • Nigeria • Kenya • Ghana • Morocco • Tanzania • Ethiopia • Uganda • South Africa • Cairo • Algiers • Casablanca • Accra • Lagos • Cape Town • Nairobi


What Time Is Utc 0

South America Time Zones

Utc Time Zone Map

Brazil • Argentina • Chile • Peru • Ecuador • Colombia • Venezuela • Panama • Puerto Rico • São Paulo • Manaus • Rio de Janeiro • Buenos Aires • Santiago • Lima • Quito • Bogota • Caracas

Utc 0000


Russia Time Zones

Moscow • Novosibirsk • Yekaterinburg • Omsk • St Petersburg • Kazan • Irkutsk • Chita • Vladivostok • Sochi • Almaty • Kyrgyzstan • Uzbekistan • Tajikistan