Skip to content
faker.tools
All 79

Plate VIII · Localization, Edge Cases & Data Sanitizers

Timezone & Timestamp Generator

Seven formats, eighteen timezones, and the DST edges.

#Timestamp
12026-07-24T13:05:10Z
22026-07-26T02:04:00Z
32026-07-24T22:13:31Z
42026-07-26T08:25:20Z
52026-07-24T21:31:57Z
62026-07-21T22:52:46Z
72026-07-23T06:37:18Z
82026-07-25T00:24:11Z
92026-07-21T20:30:08Z
102026-07-24T13:13:35Z
10 rows · 209 BGenerated in your browser · Timezone & Timestamp Generator

Unix seconds and milliseconds differ by a factor of a thousand, and code that confuses them puts a date in 1970 or in the year 56000. Generating both, alongside the ISO form, makes the mistake obvious the moment it happens.

What you can control

  • Seven formats, including the HTTP date form that Last-Modified and Expires headers require.
  • The DST-edge range concentrates timestamps around a transition, where hours repeat or vanish.
  • Eighteen timezones with correct offsets, including the half-hour ones that break naive arithmetic.
  • Ordered mode returns an ascending sequence for building a time series.

What this is not

Timezone conversion uses the runtime's Intl implementation, which depends on its ICU data. A stale ICU build can carry outdated DST rules for regions that changed them recently.

Questions

Seconds or milliseconds?

Unix time is defined in seconds. JavaScript's Date.now() returns milliseconds. Mixing them is the single most common timestamp bug there is.

Why test around DST transitions?

Because in spring an hour does not exist and in autumn an hour happens twice. Any code that adds 24 hours instead of one day gets both wrong.

What is the HTTP date format?

The fixed Sun, 06 Nov 1994 08:49:37 GMT form required by RFC 7231 for headers like Last-Modified. It is always in GMT and always in English, regardless of locale.

Next in Edge cases

All 7