Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Linux Tipps & HardeningVAXEE NP-01 Ergo Wireless (8K) mouse thoughts(24.09.2026 um 12:38 Uhr)
Linux Tipps & HardeningQualcomm Announces Snapdragon X2 Series Processors Will Support Linux(24.09.2026 um 12:04 Uhr)
Linux Tipps & HardeningBlack Friday 2026 Phone Deals: Best iPhone, Samsung and More(24.09.2026 um 12:39 Uhr)
Linux Tipps & HardeningDont Trust Qualcomm for X2 Elite Linux Support! Liars!(24.09.2026 um 12:59 Uhr)
KI & AI VideosJulian Goldie SEO: LIVE: Building Agent OS with Claude!(24.09.2026 um 12:16 Uhr)
Linux Tipps & HardeningVAXEE NP-01 Ergo Wireless (8K) mouse thoughts(24.09.2026 um 12:38 Uhr)
Linux Tipps & HardeningQualcomm Announces Snapdragon X2 Series Processors Will Support Linux(24.09.2026 um 12:04 Uhr)
Linux Tipps & HardeningBlack Friday 2026 Phone Deals: Best iPhone, Samsung and More(24.09.2026 um 12:39 Uhr)
Linux Tipps & HardeningDont Trust Qualcomm for X2 Elite Linux Support! Liars!(24.09.2026 um 12:59 Uhr)
KI & AI VideosJulian Goldie SEO: LIVE: Building Agent OS with Claude!(24.09.2026 um 12:16 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

I Built a Browser-Only Timestamp Converter — Epoch ↔ Date, 30+ Timezones, DST-Aware, 124 Tests

Unix timestamps are everywhere: API responses, log files, database columns, JWT iat/exp fields. But 1735689600 does not tell you much until you decode it. I built a Timestamp Converter to do that instantly — in the browser, no server, no l…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Unix timestamps are everywhere: API responses, log files, database columns, JWT iat/exp fields. But 1735689600 does not tell you much until you decode it. I built a Timestamp Converter to do that instantly — in the browser, no server, no libraries.









What it does





  • Timestamp → Date: paste any Unix timestamp (seconds or milliseconds, auto-detected) and get it formatted in 10+ representations


  • Date → Timestamp: type a date string (2025-01-01 09:00:00, ISO 8601, YYYY/MM/DD) and get the epoch back


  • Live clock: current Unix time in seconds, milliseconds, and ISO 8601, updated every second


  • 30+ timezones: pick any IANA timezone for both input and output


  • DST-aware: New York gives -05:00 in January and -04:00 in July, automatically


  • Relative time: "2 years ago", "in 3 months", plus the exact breakdown (730d 12h 30m)


  • Reference grid: click Y2K, Y2K38, Jan 1 2025, or "1 day from now" to analyze instantly


  • Click-to-copy: every output field copies to clipboard on click









Output formats for every conversion




















































Format Example
Unix (seconds) 1735689600
Unix (milliseconds) 1735689600000
ISO 8601 (UTC) 2025-01-01T00:00:00.000Z
ISO 8601 (local tz) 2025-01-01T09:00:00+09:00
RFC 2822 Wed, 01 Jan 2025 00:00:00 GMT
Local (readable) Wednesday, January 1, 2025 at 09:00:00
Short UTC 2025-01-01 00:00:00
Short (local tz) 2025-01-01 09:00:00
Day of Week Wednesday
Week Number W01 of 2025








The DST problem (and how it is solved)



The hardest part of a timestamp tool is not the easy direction (timestamp → UTC date — that is just new Date(ts * 1000)). The hard part is local time → UTC when the local time is in a specific timezone.



JavaScript's Date constructor does not accept a timezone argument. new Date('2025-01-01T09:00:00') always parses in the browser's local timezone, not the one the user selected.



The solution: the Intl.DateTimeFormat API, which does understand IANA timezones.




function getTZOffsetMs(date, tz) {
const fmt = {
timeZone: 'UTC',
year: 'numeric', month: '2-digit', day: '2-digit',
hour: '2-digit', minute: '2-digit', second: '2-digit',
hour12: false
};
const utcStr = new Intl.DateTimeFormat('en-CA', fmt).format(date);
const localStr = new Intl.DateTimeFormat('en-CA', { ...fmt, timeZone: tz }).format(date);
return parseIntlDate(localStr) - parseIntlDate(utcStr);
}






This gives us the offset in milliseconds for any timezone at any point in time — DST transitions included. Then to convert a local time to UTC:




function localToUTC(isoLocal, tz) {
const tentative = new Date(isoLocal + 'Z'); // parse as UTC first
const offset = getTZOffsetMs(tentative, tz);
return new Date(tentative.getTime() - offset);
}






The result: Tokyo 09:00 → UTC 00:00. New York 00:00 in January → UTC 05:00. New York 00:00 in July → UTC 04:00.









Auto-detecting seconds vs. milliseconds



A common source of confusion: is 1735689600 seconds or milliseconds? The heuristic: if |value| > 1e10, treat it as milliseconds; otherwise seconds.




function detectUnit(raw) {
if (raw.trim() === '\) return null;
const n = Number(raw);
if (isNaN(n)) return null;
return Math.abs(n) > 1e10 ?
'ms' : 's';
}












Relative time without a library



No moment.js, no date-fns. Just math:




function relativeTime(ms) {
const diff = ms - Date.now();
const abs = Math.abs(diff);
const future = diff > 0;
const units = [
{ name: 'year', ms: 365.25 * 24 * 3600 * 1000 },
{ name: 'month', ms: 30.44 * 24 * 3600 * 1000 },
{ name: 'week', ms: 7 * 24 * 3600 * 1000 },
{ name: 'day', ms: 24 * 3600 * 1000 },
{ name: 'hour', ms: 3600 * 1000 },
{ name: 'minute', ms: 60 * 1000 },
{ name: 'second', ms: 1000 }
];
for (const u of units) {
const n = Math.floor(abs / u.ms);
if (n >= 1) {
const label = n === 1 ? u.name : u.name + 's';
return future ? `in ${n} ${label}` : `${n} ${label} ago`;
}
}
return 'just now';
}












124 tests, no framework



All tests use Node.js assert. Coverage includes DST transitions, half-hour offsets (Kolkata +05:30), negative timestamps (before 1970), ISO 8601 week numbers, and date↔timestamp round-trips.




$ node test/test.js

Results: 124 passed, 0 failed
Total: 124 tests












Try it



Live tool: https://devnestio.pages.dev/timestamp-converter/



All tools: https://devnestio.pages.dev/






Built with vanilla JS. 124 tests. Zero dependencies. DST-aware.

SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - I Built a Browser-Only Timestamp Converter — Epoch ↔ Date, 30+ Timezones, DST-Aware, 124 Tests
id: 1fe0ea60-4689-46c6-9bc8-1e6729747d44
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "I Built a Browser-Only Timesta" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich I Built a Browser-Only Timestamp Convert.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I Built a Browser-Only Timestamp Converter — Epoch ↔ Date, 30+ Timezones, DST-Aware, 124 Tests

Thematisch verwandte Begriffe: Built, BrowserOnly, Timestamp, Converter · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97152 | Nanomsg versions 0.5-beta through 1.x before 1.2.3 has a remotely exploi…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick