Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/js/src/tests/test262/built-ins/Date/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  S15.9.3.1_A5_T1.js   Sprache: JAVA

 
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
    The [[Value]] property of the newly constructed object
    is set by following steps:
    8. If Result(1) is not NaN and 0 <= ToInteger(Result(1)) <= 99, Result(8) is
    1900+ToInteger(Result(1)); otherwise, Result(8) is Result(1)
    9. Compute MakeDay(Result(8), Result(2), Result(3))
    10. Compute MakeTime(Result(4), Result(5), Result(6), Result(7))
    11. Compute MakeDate(Result(9), Result(10))
    12. Set the [[Value]] property of the newly constructed object to
    TimeClip(UTC(Result(11)))
esid: sec-date-year-month-date-hours-minutes-seconds-ms
description: 2 arguments, (year, month)
includes: [assertRelativeDateMs.js]
---*/


assertRelativeDateMs(new Date(1899, 11), -2211667200000);

assertRelativeDateMs(new Date(1899, 12), -2208988800000);

assertRelativeDateMs(new Date(1900, 0), -2208988800000);

assertRelativeDateMs(new Date(1969, 11), -2678400000);

assertRelativeDateMs(new Date(1969, 12), 0);

assertRelativeDateMs(new Date(1970, 0), 0);

assertRelativeDateMs(new Date(1999, 11), 944006400000);

assertRelativeDateMs(new Date(1999, 12), 946684800000);

assertRelativeDateMs(new Date(2000, 0), 946684800000);

assertRelativeDateMs(new Date(2099, 11), 4099766400000);

assertRelativeDateMs(new Date(2099, 12), 4102444800000);

assertRelativeDateMs(new Date(2100, 0), 4102444800000);

reportCompare(0, 0);

Messung V0.5
C=97 H=89 G=93

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.