# Unix timestamp converter

> Converteer UNIX tijdstempels naar datum en tijd, en andersom. Toont live de huidige timestamp, lokale tijd en UTC. Volledig gratis en eenvoudig.

URL: https://acrafto.com/nl/unix-timestamp-converter/

Tools are interactive browser apps; there is no public API, no endpoints to call and no server-side processing. To use a tool, open its HTML page in a browser.

## UNIX Tijdstempel Converter (online UNIX tijd omzetter)

Deze **UNIX tijdstempel converter** stelt u in staat om snel **UNIX tijd (epoch time / POSIX time)** om te zetten naar **datum en tijd** en vice versa. Het ondersteunt **tijdstempels in zowel seconden als milliseconden**, toont de **lokale tijd**, **UTC** en **ISO 8601**, en resultaten kunnen met één klik **gekopieerd** worden.

---

## Wat is een UNIX tijdstempel (epoch time / POSIX time)?

**Een UNIX tijdstempel** is een getal dat de tijd uitdrukt als het **aantal seconden sinds 1 januari 1970 00:00:00 UTC** (de zogenaamde **UNIX epoch**). In de praktijk is het een van de meest gebruikte formaten voor het opslaan en overdragen van datum en tijd in systemen, databases, API’s en logging.

**Voorbeeld:** `1700000000` komt overeen met de datum **14 november 2023 22:13:20 UTC**.

### Waarom precies 1 januari 1970?

De start van de epoch (1970-01-01) werd gekozen tijdens het ontwerp van UNIX als een praktisch referentiepunt: het ligt dicht bij de periode van de systeemcreatie en maakt eenvoudige tijdberekeningen mogelijk.

---

## UNIX tijdstempel in seconden vs. milliseconden

UNIX tijdstempels komen het vaakst voor in twee vormen:

| Tijdstempel formaat | Voorbeeld | Typisch gebruik |
| --- | ---: | --- |
| **Seconden (s)** | `1700000000` | databases, backend, API’s, bestanden |
| **Milliseconden (ms)** | `1700000000000` | JavaScript (`Date.now()`), analyses, gedetailleerde logs |

**Hoe weet u wat u heeft?**

- **Seconden** hebben voor „hedendaagse“ datums doorgaans **10 cijfers**.
- **Milliseconden** hebben doorgaans **13 cijfers** en zijn ongeveer **1000× groter**.
- Indicatief: als de waarde **\> 10¹²**, zijn het vrijwel zeker **milliseconden**.

---

## Hoe de UNIX tijdstempel converter te gebruiken

### 1) Tijdstempel → Datum en tijd

1. Voer de **UNIX tijdstempel** in het veld in, of klik op **Nu** (huidige UNIX tijd).
2. Als de tijdstempel in **milliseconden** is, activeer dan de optie **Milliseconden**.
3. Klik op **Omzetten** (of druk op Enter).
4. De conversie naar **lokale tijd**, **UTC** en **ISO 8601** wordt weergegeven.
5. Door op het resultaat te klikken, **kopieert u het naar het klembord**.

### 2) Datum en tijd → Tijdstempel

1. Selecteer de **datum en tijd** in het formulier.
2. Klik op **Omzetten**.
3. U ontvangt het resultaat als een **tijdstempel in seconden en milliseconden**.

---

## Waar wordt de UNIX tijdstempel het meest gebruikt?

UNIX tijd komt u vrijwel overal tegen waar met tijd wordt gewerkt in IT:

- **Databases** – opslaan van tijden en vergelijkingen in MySQL, PostgreSQL, SQLite, etc.
- **API’s** – REST/GraphQL retourneren vaak de tijd als een tijdstempel (eenvoudige serialisatie).
- **Logs en monitoring** – nauwkeurige sortering van gebeurtenissen in de tijd.
- **Git** – commits bevatten tijdinformatie.
- **Bestandssystemen** – tijden zoals mtime/ctime/atime (laatste wijziging, etc.).
- **JWT** – claims `iat` (issued at) en `exp` (expires) zijn typisch in epoch seconden.
- **Linux/Unix shell** – `date +%s` retourneert de huidige tijdstempel.
- **JavaScript** – `Date.now()` retourneert de tijd in **milliseconden**.

---

## Praktische voorbeelden van UNIX tijdconversie

### JavaScript (tijdstempel ↔ datum)

```
// Huidige UNIX tijdstempel in seconden
const tsSeconds = Math.floor(Date.now() / 1000);

// Huidige tijdstempel in milliseconden
const tsMs = Date.now();

// Tijdstempel (s) -> datum
const dateFromSeconds = new Date(1700000000 * 1000);
console.log(dateFromSeconds.toISOString());

// Datum -> tijdstempel (s)
const ts = Math.floor(new Date("2024-01-01T00:00:00Z").getTime() / 1000);
console.log(ts);
```

### Python (tijdstempel ↔ datetime)

```
import time
from datetime import datetime, timezone

# Huidige tijdstempel in seconden
ts = int(time.time())

# Tijdstempel -> datetime (UTC)
dt_utc = datetime.fromtimestamp(1700000000, tz=timezone.utc)

# Datum -> tijdstempel
ts2 = int(datetime(2024, 1, 1, tzinfo=timezone.utc).timestamp())
```

### SQL (MySQL)

```
-- Huidige UNIX tijdstempel (s)
SELECT UNIX_TIMESTAMP();

-- Tijdstempel -> datum
SELECT FROM_UNIXTIME(1700000000);

-- Datum -> tijdstempel
SELECT UNIX_TIMESTAMP('2024-01-01 00:00:00');
```

---

## Tijdzones: UTC, lokale tijd en ISO 8601

**Een UNIX tijdstempel is altijd in UTC** – het bevat geen informatie over de tijdzone of zomertijd. De conversie naar lokale tijd hangt af van de browser-, serverinstellingen of de gebruikte bibliotheek.

Termen die nuttig zijn om te kennen:

- **UTC** – wereldwijde standaard zonder zomer-/wintertijd.
- **GMT** – voor algemeen gebruik praktisch identiek aan UTC.
- **Offset** – verschuiving ten opzichte van UTC (bijv. Amsterdam **UTC+1** in de winter, **UTC+2** in de zomer).

---

## Limieten van de UNIX tijdstempel en het Jaar 2038 Probleem

### Het jaar 2038 probleem (Year 2038 Problem)

Op sommige **32-bits systemen** wordt de tijdstempel opgeslagen als `int32` met een maximum van **2.147.483.647**, wat overeenkomt met **19 januari 2038 03:14:07 UTC**. Na overschrijding kan dit leiden tot een overflow en onjuiste tijd. Moderne **64-bits** systemen hebben dit probleem doorgaans niet.

### Bereik van 64-bits UNIX tijd

64-bits waarden bestrijken een extreem brede periode (in de praktijk „voor eeuwig“). Negatieve waarden betekenen een datum **vóór 1 januari 1970**.

---

## FAQ – veelgestelde vragen over UNIX tijdstempels

### Is een UNIX tijdstempel in UTC, of in lokale tijd?

Een UNIX tijdstempel is altijd in **UTC**. Lokale tijd ontstaat pas tijdens de conversie volgens de tijdzone. De converter toont daarom meestal zowel UTC als de lokale tijd.

### Hoe weet ik of de tijdstempel in seconden of milliseconden is?

Voor de huidige tijd heeft een tijdstempel in **seconden** doorgaans **10 cijfers**. In **milliseconden** heeft het meestal **13 cijfers** en is het ongeveer **1000× groter**. Indicatief: een waarde **\> 10¹²** zijn meestal milliseconden.

### Wat betekent een negatieve UNIX tijdstempel?

Een negatieve tijdstempel vertegenwoordigt een datum **vóór 1 januari 1970**. Bijvoorbeeld `-1` komt overeen met **31 december 1969 23:59:59 UTC**.

### Hoe converteer ik een UNIX tijdstempel in SQL?

In MySQL gebruikt u `FROM_UNIXTIME(timestamp)` en omgekeerd `UNIX_TIMESTAMP(datum)`. In PostgreSQL is dit typisch `TO_TIMESTAMP(timestamp)` en `EXTRACT(EPOCH FROM datum)`.

### Waarom begint de UNIX epoch op 1 januari 1970?

Het is een historisch gekozen referentiepunt uit de vroege dagen van UNIX: eenvoudig, praktisch en dicht bij de periode van de systeemontwikkeling.

## Other languages

- Čeština (cs): [Unix timestamp převodník](https://acrafto.com/cs/unix-timestamp/) ([Markdown](https://acrafto.com/cs/unix-timestamp/index.md))
- Slovenčina (sk): [Unix timestamp konvertor](https://acrafto.com/sk/unix-timestamp-prevodnik/) ([Markdown](https://acrafto.com/sk/unix-timestamp-prevodnik/index.md))
- English (en): [UNIX Timestamp Converter](https://acrafto.com/en/unix-timestamp-converter/) ([Markdown](https://acrafto.com/en/unix-timestamp-converter/index.md))
- Deutsch (de): [Unix Timestamp umrechnen](https://acrafto.com/de/unix-timestamp-konverter/) ([Markdown](https://acrafto.com/de/unix-timestamp-konverter/index.md))
- Français (fr): [Convertisseur timestamp Unix](https://acrafto.com/fr/convertisseur-timestamp-unix/) ([Markdown](https://acrafto.com/fr/convertisseur-timestamp-unix/index.md))
- Español (es): [Convertidor de UNIX timestamp](https://acrafto.com/es/convertidor-timestamp-unix/) ([Markdown](https://acrafto.com/es/convertidor-timestamp-unix/index.md))
- Italiano (it): [Convertitore timestamp UNIX](https://acrafto.com/it/convertitore-timestamp-unix/) ([Markdown](https://acrafto.com/it/convertitore-timestamp-unix/index.md))
- Português (pt): [Conversor de timestamp Unix](https://acrafto.com/pt/conversor-timestamp-unix/) ([Markdown](https://acrafto.com/pt/conversor-timestamp-unix/index.md))
- Polski (pl): [Konwerter UNIX timestamp](https://acrafto.com/pl/konwerter-unix-timestamp/) ([Markdown](https://acrafto.com/pl/konwerter-unix-timestamp/index.md))
- Română (ro): [Convertor Unix timestamp](https://acrafto.com/ro/convertor-unix-timestamp/) ([Markdown](https://acrafto.com/ro/convertor-unix-timestamp/index.md))
- Magyar (hu): [UNIX időbélyeg konvertáló](https://acrafto.com/hu/unix-idobelyeg-atalakito/) ([Markdown](https://acrafto.com/hu/unix-idobelyeg-atalakito/index.md))
- Ελληνικά (el): [Μετατροπέας Unix timestamp](https://acrafto.com/el/unix-timestamp-converter/) ([Markdown](https://acrafto.com/el/unix-timestamp-converter/index.md))
- Български (bg): [Unix timestamp конвертор](https://acrafto.com/bg/unix-timestamp-konverter/) ([Markdown](https://acrafto.com/bg/unix-timestamp-konverter/index.md))
- Hrvatski (hr): [Unix timestamp konverter](https://acrafto.com/hr/unix-timestamp-konverter/) ([Markdown](https://acrafto.com/hr/unix-timestamp-konverter/index.md))
- Slovenščina (sl): [Pretvornik Unix timestamp](https://acrafto.com/sl/unix-timestamp-pretvornik/) ([Markdown](https://acrafto.com/sl/unix-timestamp-pretvornik/index.md))
- Eesti (et): [UNIX timestamp teisendaja](https://acrafto.com/et/unix-timestamp-teisendaja/) ([Markdown](https://acrafto.com/et/unix-timestamp-teisendaja/index.md))
- Latviešu (lv): [UNIX laika zīmogu pārveidotājs](https://acrafto.com/lv/unix-timestamp-konvertetajs/) ([Markdown](https://acrafto.com/lv/unix-timestamp-konvertetajs/index.md))
- Lietuvių (lt): [UNIX laiko žymės keitiklis](https://acrafto.com/lt/unix-laiko-zymes-keitiklis/) ([Markdown](https://acrafto.com/lt/unix-laiko-zymes-keitiklis/index.md))
- Svenska (sv): [Unix timestamp-omvandlare](https://acrafto.com/sv/unix-timestamp-omvandlare/) ([Markdown](https://acrafto.com/sv/unix-timestamp-omvandlare/index.md))
- Dansk (da): [UNIX timestamp konverter](https://acrafto.com/da/unix-timestamp-konverter/) ([Markdown](https://acrafto.com/da/unix-timestamp-konverter/index.md))
- Suomi (fi): [UNIX-aikaleiman muunnin](https://acrafto.com/fi/unix-aikaleiman-muunnin/) ([Markdown](https://acrafto.com/fi/unix-aikaleiman-muunnin/index.md))
- Norsk (no): [Unix timestamp-konverterer](https://acrafto.com/no/unix-tidsstempel-konverterer/) ([Markdown](https://acrafto.com/no/unix-tidsstempel-konverterer/index.md))
- Українська (uk): [Конвертер Unix timestamp](https://acrafto.com/uk/konverter-unix-chasu/) ([Markdown](https://acrafto.com/uk/konverter-unix-chasu/index.md))
- Русский (ru): [Unix timestamp конвертер](https://acrafto.com/ru/unix-timestamp-konverter/) ([Markdown](https://acrafto.com/ru/unix-timestamp-konverter/index.md))
- Српски (sr): [UNIX timestamp konverter](https://acrafto.com/sr/unix-timestamp-konverter/) ([Markdown](https://acrafto.com/sr/unix-timestamp-konverter/index.md))
- Македонски (mk): [UNIX timestamp конвертор](https://acrafto.com/mk/unix-timestamp-konvertor/) ([Markdown](https://acrafto.com/mk/unix-timestamp-konvertor/index.md))
- Bosanski (bs): [Unix timestamp konverter](https://acrafto.com/bs/unix-timestamp-konverter/) ([Markdown](https://acrafto.com/bs/unix-timestamp-konverter/index.md))
- Shqip (sq): [Konvertues Unix timestamp](https://acrafto.com/sq/konvertues-timestamp-unix/) ([Markdown](https://acrafto.com/sq/konvertues-timestamp-unix/index.md))
- Türkçe (tr): [UNIX zaman damgası dönüştürücü](https://acrafto.com/tr/unix-zaman-damgasi-donusturucu/) ([Markdown](https://acrafto.com/tr/unix-zaman-damgasi-donusturucu/index.md))
- 日本語 (ja): [UNIXタイムスタンプ変換](https://acrafto.com/ja/unix-timestamp-converter/) ([Markdown](https://acrafto.com/ja/unix-timestamp-converter/index.md))
- 한국어 (ko): [유닉스 타임스탬프 변환기](https://acrafto.com/ko/unix-timestamp-converter/) ([Markdown](https://acrafto.com/ko/unix-timestamp-converter/index.md))
- العربية (ar): [محول Unix Timestamp](https://acrafto.com/ar/unix-timestamp-converter/) ([Markdown](https://acrafto.com/ar/unix-timestamp-converter/index.md))
- हिन्दी (hi): [UNIX टाइमस्टैम्प कनवर्टर](https://acrafto.com/hi/unix-timestamp-converter/) ([Markdown](https://acrafto.com/hi/unix-timestamp-converter/index.md))
- Bahasa Indonesia (id): [Konverter Unix timestamp](https://acrafto.com/id/konverter-timestamp-unix/) ([Markdown](https://acrafto.com/id/konverter-timestamp-unix/index.md))
- Tiếng Việt (vi): [Chuyển đổi Unix timestamp](https://acrafto.com/vi/bo-chuyen-doi-unix-timestamp/) ([Markdown](https://acrafto.com/vi/bo-chuyen-doi-unix-timestamp/index.md))
- ไทย (th): [แปลง Unix Timestamp](https://acrafto.com/th/unix-timestamp-converter/) ([Markdown](https://acrafto.com/th/unix-timestamp-converter/index.md))
- עברית (he): [ממיר Unix Timestamp](https://acrafto.com/he/unix-timestamp-converter/) ([Markdown](https://acrafto.com/he/unix-timestamp-converter/index.md))
