If you work with distributed systems, incident logs, or remote teams, you probably open a browser tab several times a day to:
- Decode a 13-digit Unix timestamp from a production log.
- Check what
9:30 AMin New York is in London during those awkward March/November DST weeks. - Count business days between two dates while excluding company or public holidays.
Most online portals that solve these problems have two annoying issues: they bury simple inputs under heavy ad sidebars, or you have no idea whether the production timestamps and internal holiday schedules you paste are being logged on a backend server.
So I built DateTimeTools — a free, ad-free, zero-signup web suite where every calculation runs 100% locally in your browser.
Here is how the core date, time zone, and privacy pieces work under the hood.
1. Resolving US vs. UK Daylight Saving Time with Intl.DateTimeFormat
Hardcoding offsets like EST = -5 or BST = +1 breaks twice a year. Even worse, the US and the UK switch Daylight Saving Time on different Sundays:
- Spring: The US switches on the 2nd Sunday of March; the UK switches on the last Sunday of March.
- Autumn: The UK switches back on the last Sunday of October; the US switches on the 1st Sunday of November.
Instead of shipping a heavy third-party timezone bundle, the DateTimeTools Time Zone Converter relies on the browser's built-in ECMAScript Internationalization API (Intl.DateTimeFormat + Intl.supportedValuesOf('timeZone')) with IANA identifiers like America/New_York and Europe/London:
function formatInZone(epochMs, timeZone) { return new Intl.DateTimeFormat('en-US', { timeZone, weekday: 'short', year: 'numeric', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false, timeZoneName: 'shortOffset', }).format(new Date(epochMs)); } That gives accurate historical, present, and future DST transitions with zero server round-trips, and lets you compare multiple cities side by side with one-click ISO-8601 copy.
2. Auto-Detecting 10, 13, 16, and 19-Digit Unix Timestamps
A common paper cut when debugging logs is pasting a 13-digit millisecond timestamp into a converter that assumes 10-digit seconds—landing you somewhere in the year 55,000+.
In the Unix Timestamp Converter, numeric inputs are classified automatically by magnitude:
function parseTimestamp(raw) { const v = raw.trim(); if (/^-?\d+(\.\d+)?$/.test(v)) { const num = Number(v); const abs = Math.abs(num); if (abs >= 1e17) return new Date(num / 1e6); // 19 digits: nanoseconds if (abs >= 1e14) return new Date(num / 1e3); // 16 digits: microseconds if (abs >= 1e11) return new Date(num); // 13 digits: milliseconds return new Date(num * 1000); // 10 digits: seconds } const d = new Date(v); return Number.isNaN(d.getTime()) ? null : d; } For example, 1700000000000 immediately resolves to 2023-11-14T22:13:20.000Z—a UTC format valid under both ISO-8601 and RFC-3339 (and yes, Z is explicitly permitted by RFC-3339 Section 5.6).
3. Avoiding Off-by-One Bugs in Workday & Day Counting
Counting days in local Date objects is a classic trap: a spring DST day only has 23 hours, and an autumn DST day has 25 hours, which can silently break Math.floor((end - start) / 86400000).
Both the Business Days Calculator and the Day Counter normalize every calendar date to UTC midnight (Date.UTC(y, m - 1, d)) before stepping day by day:
- End-date convention: You can toggle Include end date (matching Excel's
NETWORKDAYS, where Mon–Fri = 5 days) vs. exclusive elapsed days (matchingnumpy.busday_count, where Mon–Fri = 4 days). - Custom holidays: Paste any
YYYY-MM-DDholiday list (US federal, UK bank holidays, India national/state holidays, or internal company freeze dates) without hitting a paywall. - Calendar-aware spans: For full
years / months / days / hours / minutes / secondsbreakdowns that respect actual 28–31 day months and leap years instead of 30-day shortcuts, the Date Difference Calculator steps year-by-year and month-by-month alongside exact total units.
4. "Client-Side" Shouldn't Mean "Trust Me"
Many web tools claim to run locally while still loading ad-tech scripts or syncing your inputs to a cloud "auto-save" endpoint.
When you use DateTimeTools:
- No sign-up, no paywalls, and no daily usage limits.
- No ad networks and no server-side input storage.
- Verifiable in 5 seconds: Open your browser's DevTools → Network tab, paste a production timestamp or your company's holiday schedule, and you'll see zero outbound requests carrying your inputs. Once loaded, the calculators even keep working if you turn off Wi-Fi.
Try It Out
- All-in-one workbench: datetimetools.app
- Dedicated tools: Time Zone Converter · Business Days Calculator · Day Counter · Date Difference Calculator · Unix Timestamp Converter
If there's another date/time edge case you constantly run into (like Snowflake IDs, ISO week numbers, or cron schedules), drop a comment below—I'd love to hear what you'd add next.