概要
JavaScript DateまたはIntl.DateTimeFormatオブジェクトの現在日時を、任意の日時とタイムゾーンに上書きできるようにします。
Time Travel helps you debug time-dependent frontend applications without having to change the system time. Usage: - Open the tab you want to change the time in. - Click the Extensions icon in the toolbar, then click Time Travel. - Choose a date from the calendar and edit the time if necessary, or enter a date and time directly (see examples below). - Confirm with Enter or by clicking the "Change Date" button. In Chrome, when first activating the extension on a tab, the page needs to be reloaded once to apply the changes. - Any JavaScript Date or Intl.DateTimeFormat in the current tab now returns the fake date/time you set. Other tabs and origins are not affected. To restore the system time, click the extension icon and switch off the "Enable Fake Date" toggle. When the fake date is enabled, the clock runs forward from the configured time. You can stop the clock by switching on the "Stop Clock" toggle. The fake date will be reset to the last value you set. Example Dates and Formats: - 2025-04-27 12:40 - Local time - 2025-04-27 - Midnight UTC - 2025-03-30 00:59:55 - Assuming your system timezone is Europe/London (GMT), 5 seconds before a one-hour jump to 2 a.m. (summer time) - 2025-04-27T12:40Z - Set local equivalent for given UTC time - 2025-04-27T12:40+1130 - Set local equivalent for time with +11:30 timezone offset. Note that actual time zone is not changed - 2025-03-25T12:40:00.120 - Local time with milliseconds - 1731493140025 - UNIX timestamp Features: - Fakes date and time for all methods of `Date` and `Intl.DateTimeFormat` objects. - Time can be stopped and resumed. - Minimal permissions, only affects current tab after clicking the extension icon. Limitations: - Only JavaScript is affected by the extension. - Some functionality or animations may behave strangely if the clock is stopped. - The extension does not work in iframes with the `sandbox` attribute.
5 点満点で 4.339 件の評価
詳細
- バージョン2.4.5
- 更新:2025年11月21日
- 提供元Christian Pulvermacher
- サイズ91.74KiB
- 言語4 言語
- デベロッパー
メール
pulvermacher.christian@gmail.com - 非取引業者このデベロッパーは取引業者として申告していません。EU 加盟国の消費者とこのデベロッパーとの間に締結された契約には、消費者の権利が適用されません。
プライバシー
このデベロッパーは、お客様のデータについて以下を宣言しています
- 承認されている以外の用途で第三者に販売しないこと
- アイテムの中心機能と関係のない目的で使用または転送しないこと
- 信用力を判断する目的または融資目的で使用または転送しないこと
サポート
質問や提案、問題がある場合は、デベロッパーのサポートサイトにアクセスしてください。