()
| 31 | } |
| 32 | |
| 33 | toTimeString() { |
| 34 | // toUTCString returns RFC 7231 ("Mon, 12 Aug 2024 23:36:08 GMT") |
| 35 | const time = this.internal.toUTCString().split(" ")[4]; |
| 36 | const [sign, hours, minutes] = this.tzComponents(); |
| 37 | // "07:42:23 GMT+0800 (Singapore Standard Time)" |
| 38 | return `${time} GMT${sign}${hours}${minutes} (${tzName( |
| 39 | this.timeZone, |
| 40 | this, |
| 41 | )})`; |
| 42 | } |
| 43 | |
| 44 | toLocaleString(locales, options) { |
| 45 | return Date.prototype.toLocaleString.call(this, locales, { |
no test coverage detected