Zaman/Sayılar
Unix Timestamp ↔ Tarih
Unix zamanını tarihe dönüştürün ve tersini yapın; herhangi bir saat dilimi (IANA) desteğiyle.
Unix time (epoch time) is the number of seconds elapsed since January 1, 1970, 00:00:00 UTC. It's the most common way to store time in databases, APIs, and logs, since it's just a single integer with no tie to a specific timezone or date format.
How to use it
- Timestamp → date: paste a number of seconds (or milliseconds) and the tool shows the date and time in your chosen timezone.
- Date → timestamp: pick a date and time to get the matching Unix timestamp.
- The "now" button fills in the current moment instantly — handy for testing an API or grabbing a fresh value.
Common uses
- Reading a created_at or expires_at field from an API response that arrived as a raw number.
- Checking whether a token or session has expired, given an expiry field in seconds since the epoch.
- Building a timestamp for test data or a date filter in a database query.
Things to keep in mind
Mixing up seconds and milliseconds is the most common mistake: JavaScript's Date.now() returns milliseconds, while most Unix APIs use seconds — a factor of 1000 off.
Unix time itself has no timezone — it's always UTC; a timezone is only applied when displaying the date to a person.
Bu araç hakkında makale: Unix zamanı: bilgisayarlar zamanı neden 1970'ten itibaren sayar
Sıkça sorulan sorular
Unix zaman damgası nedir?
1 Ocak 1970, 00:00:00 UTC'den (Unix dönemi) bu yana geçen saniye sayısıdır. Bu sayı herhangi bir saat dilimine bağlı değildir — saat dilimi yalnızca tarih bir kişiye gösterilirken uygulanır.
Saniye ile milisaniye arasındaki fark nedir?
JavaScript ve bazı API'ler (Date.now() gibi) zaman damgasını milisaniye cinsinden döndürürken, klasik Unix zamanı saniye cinsindendir. Birimi karıştırmak ya 1970'te ya da uzak gelecekte bir yerde bir tarih verir — "Birimler" alanında doğru birimi seçin.
2038 yılı sorunu nedir?
Bir zaman damgasının işaretli 32 bitlik bir tam sayı olarak saklandığı sistemlerde, saniye sayacı 19 Ocak 2038'de taşacaktır. Modern 64 bitlik sistemlerde bu sorun yoktur.
Unix zamanı artık saniyeleri hesaba katar mı?
Hayır, Unix zamanında her gün her zaman tam olarak 86400 saniyeye eşittir, artık saniyeler (leap seconds) yok sayılır. Astronomik UTC ile hassas senkronizasyona ihtiyaç duyan sistemler, artık saniyeleri standart Unix timestamp'in dışında ayrı bir mekanizmayla işler.
Unix timestamp'ler negatif olabilir mi?
Evet, negatif değerler 1 Ocak 1970'ten önceki tarihlere karşılık gelir. Çoğu modern sistem bu tür değerleri doğru şekilde işler, ancak bazı eski API'ler veya kütüphaneler bunları desteklemeyebilir.