Name Description Size
browser.js 0
coercion-errors.js --- esid: sec-date.utc description: Abrupt completions from coercing input values info: | 1. Let y be ? ToNumber(year). 2. Let m be ? ToNumber(month). 3. If date is supplied, let dt be ? ToNumber(date); else let dt be 1. 4. If hours is supplied, let h be ? ToNumber(hours); else let h be 0. 5. If minutes is supplied, let min be ? ToNumber(minutes); else let min be 0. 6. If seconds is supplied, let s be ? ToNumber(seconds); else let s be 0. 7. If ms is supplied, let milli be ? ToNumber(ms); else let milli be 0. 8. If y is not NaN and 0 ≤ ToInteger(y) ≤ 99, let yr be 1900+ToInteger(y); otherwise, let yr be y. 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). --- 2170
coercion-order.js --- esid: sec-date.utc description: Order of input coercion info: | 1. Let y be ? ToNumber(year). 2. Let m be ? ToNumber(month). 3. If date is supplied, let dt be ? ToNumber(date); else let dt be 1. 4. If hours is supplied, let h be ? ToNumber(hours); else let h be 0. 5. If minutes is supplied, let min be ? ToNumber(minutes); else let min be 0. 6. If seconds is supplied, let s be ? ToNumber(seconds); else let s be 0. 7. If ms is supplied, let milli be ? ToNumber(ms); else let milli be 0. 8. If y is not NaN and 0 ≤ ToInteger(y) ≤ 99, let yr be 1900+ToInteger(y); otherwise, let yr be y. 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). --- 1475
fp-evaluation-order.js --- esid: sec-date.utc description: arithmetic in Date is done on floating-point numbers info: | [...] Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). #sec-maketime Let _t_ be ((_h_ `*` msPerHour `+` _m_ `*` msPerMinute) `+` _s_ `*` msPerSecond) `+` _milli_, performing the arithmetic according to IEEE 754-2019 rules (that is, as if using the ECMAScript operators `*` and `+`). #sec-makedate Return day × msPerDay + time. --- 880
infinity-make-day.js --- esid: sec-date.utc description: Infinite values specified to MakeDay produce NaN info: | [...] 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). MakeDay (year, month, date) 1. If year is not finite or month is not finite or date is not finite, return NaN. --- 1024
infinity-make-time.js --- esid: sec-date.utc description: Infinite values specified to MakeTime produce NaN info: | [...] 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). MakeTime (hour, min, sec, ms) 1. If hour is not finite or min is not finite or sec is not finite or ms is not finite, return NaN. --- 1104
length.js --- esid: sec-date.utc description: > Date.UTC.length is 7. info: | Date.UTC ( year [ , month [ , date [ , hours [ , minutes [ , seconds [ , ms ] ] ] ] ] ] ) The "length" property of this function is 7𝔽. 17 ECMAScript Standard Built-in Objects: Unless otherwise specified, the "length" property of a built-in function object has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. includes: [propertyHelper.js] --- 748
name.js --- esid: sec-date.utc description: > Date.UTC.name is "UTC". info: | Date.UTC ( year, month [ , date [ , hours [ , minutes [ , seconds [ , ms ] ] ] ] ] ) 17 ECMAScript Standard Built-in Objects: Every built-in Function object, including constructors, that is not identified as an anonymous function has a name property whose value is a String. Unless otherwise specified, the name property of a built-in Function object, if it exists, has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. includes: [propertyHelper.js] --- 867
nans.js --- esid: sec-date.utc description: NaN value handling info: | 1. Let y be ? ToNumber(year). 2. Let m be ? ToNumber(month). 3. If date is supplied, let dt be ? ToNumber(date); else let dt be 1. 4. If hours is supplied, let h be ? ToNumber(hours); else let h be 0. 5. If minutes is supplied, let min be ? ToNumber(minutes); else let min be 0. 6. If seconds is supplied, let s be ? ToNumber(seconds); else let s be 0. 7. If ms is supplied, let milli be ? ToNumber(ms); else let milli be 0. 8. If y is not NaN and 0 ≤ ToInteger(y) ≤ 99, let yr be 1900+ToInteger(y); otherwise, let yr be y. 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). --- 1319
no-arg.js --- esid: sec-date.utc description: Tests for non optional arguments info: | 1. Let y be ? ToNumber(year). 2. Let m be ? ToNumber(month). 3. If date is supplied, let dt be ? ToNumber(date); else let dt be 1. 4. If hours is supplied, let h be ? ToNumber(hours); else let h be 0. 5. If minutes is supplied, let min be ? ToNumber(minutes); else let min be 0. 6. If seconds is supplied, let s be ? ToNumber(seconds); else let s be 0. 7. If ms is supplied, let milli be ? ToNumber(ms); else let milli be 0. 8. If y is not NaN and 0 ≤ ToInteger(y) ≤ 99, let yr be 1900+ToInteger(y); otherwise, let yr be y. 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). --- 948
non-integer-values.js --- esid: sec-date.utc description: non-integer values are converted to integers using `ToInteger` info: | [...] Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). #sec-timeclip Let clippedTime be ! ToInteger(time). #sec-makeday Let y be ! ToInteger(year). Let m be ! ToInteger(month). Let dt be ! ToInteger(date). #sec-maketime Let h be ! ToInteger(hour). Let m be ! ToInteger(min). Let s be ! ToInteger(sec). Let milli be ! ToInteger(ms). --- 882
not-a-constructor.js --- esid: sec-ecmascript-standard-built-in-objects description: > Date.UTC does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. sec-evaluatenew ... 7. If IsConstructor(constructor) is false, throw a TypeError exception. ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] --- 854
overflow-make-day.js --- esid: sec-date.utc description: Values specified to MakeDay exceed their calendar boundaries info: | [...] 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). MakeDay (year, month, date) [...] 5. Let ym be y + floor(m / 12). [...] 7. Find a value t such that YearFromTime(t) is ym and MonthFromTime(t) is mn and DateFromTime(t) is 1; but if this is not possible (because some argument is out of range), return NaN. 8. Return Day(t) + dt - 1. --- 1032
overflow-make-time.js --- esid: sec-date.utc description: Values specified to MakeTime exceed their time boundaries info: | [...] 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). MakeTime (hour, min, sec, ms) 1. If hour is not finite or min is not finite or sec is not finite or ms is not finite, return NaN. 2. Let h be ToInteger(hour). 3. Let m be ToInteger(min). 4. Let s be ToInteger(sec). 5. Let milli be ToInteger(ms). 6. Let t be h * msPerHour + m * msPerMinute + s * msPerSecond + milli, performing the arithmetic according to IEEE 754-2008 rules (that is, as if using the ECMAScript operators * and +). 7. Return t. --- 1477
prop-desc.js --- esid: sec-date.utc description: > Property descriptor for Date.UTC. info: | Date.UTC ( year [ , month [ , date [ , hours [ , minutes [ , seconds [ , ms ] ] ] ] ] ] ) 17 ECMAScript Standard Built-in Objects: Every other data property described in clauses 19 through 28 and in Annex B.2 has the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. includes: [propertyHelper.js] --- 712
return-value.js --- esid: sec-date.utc description: Return value of `Date.UTC` info: | 1. Let y be ? ToNumber(year). 2. Let m be ? ToNumber(month). 3. If date is supplied, let dt be ? ToNumber(date); else let dt be 1. 4. If hours is supplied, let h be ? ToNumber(hours); else let h be 0. 5. If minutes is supplied, let min be ? ToNumber(minutes); else let min be 0. 6. If seconds is supplied, let s be ? ToNumber(seconds); else let s be 0. 7. If ms is supplied, let milli be ? ToNumber(ms); else let milli be 0. 8. If y is not NaN and 0 ≤ ToInteger(y) ≤ 99, let yr be 1900+ToInteger(y); otherwise, let yr be y. 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). --- 1972
shell.js 0
time-clip.js --- esid: sec-date.utc description: Time clipping info: | [...] 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). TimeClip (time) 1. If time is not finite, return NaN. 2. If abs(time) > 8.64 × 1015, return NaN. --- 545
year-offset.js --- esid: sec-date.utc description: Conditional offset of provided `year` value info: | 1. Let y be ? ToNumber(year). [...] 8. If y is not NaN and 0 ≤ ToInteger(y) ≤ 99, let yr be 1900+ToInteger(y); otherwise, let yr be y. 9. Return TimeClip(MakeDate(MakeDay(yr, m, dt), MakeTime(h, min, s, milli))). --- 1037