(date, time)
| 518 | } |
| 519 | |
| 520 | function targetInternalTime(date, time) { |
| 521 | // Compute the target-zone wall-clock representation for a timestamp without |
| 522 | // mutating the TZDate. This mirrors syncToInternal for temporary checks. |
| 523 | const internal = new Date(time ?? +date); |
| 524 | internal.setUTCSeconds( |
| 525 | internal.getUTCSeconds() - |
| 526 | Math.round(-tzOffset(date.timeZone, internal) * 60), |
| 527 | ); |
| 528 | return +internal; |
| 529 | } |
no test coverage detected