tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

disregard-time-zone-ids-if-exact-times-are-equal.js (643B)


      1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
      2 // Copyright (C) 2022 Igalia, S.L. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-temporal.zoneddatetime.compare
      7 description: Disregards time zone IDs if exact times are equal.
      8 features: [Temporal]
      9 ---*/
     10 
     11 /*
     12 const zdt1 = Temporal.ZonedDateTime.from("1976-11-18T15:23:30.123456789+01:00[+01:00]");
     13 */
     14 const zdt1 = new Temporal.ZonedDateTime(217175010123456789n, "+01:00");
     15 
     16 assert.sameValue(Temporal.ZonedDateTime.compare(zdt1, zdt1.withTimeZone("+05:30")), 0);
     17 
     18 reportCompare(0, 0);