Unix Timestamp
Unix timestamp (epoch time) is the number of seconds since January 1, 1970, 00:00:00 UTC — the universal time format used in databases, APIs, log files, and programming languages. Our converter translates between Unix timestamps and human-readable dates in any timezone, handles millisecond precision, and shows the current epoch time live.
الطابع الزمني الحالي
تحويل التاريخ إلى طابع زمني
حول Unix Timestamp Converter
Unix timestamp (epoch time) is the number of seconds since January 1, 1970, 00:00:00 UTC — the universal time format used in databases, APIs, log files, and programming languages. Our converter translates between Unix timestamps and human-readable dates in any timezone, handles millisecond precision, and shows the current epoch time live.
كيفية الاستخدام
- Enter a Unix timestamp (seconds or milliseconds) to convert to a readable date.
- Enter a date and time to convert to Unix timestamp.
- Select your local timezone or any IANA timezone for conversion.
- Copy the result in ISO 8601 format, RFC 2822, or raw timestamp.
الصيغة والمنهجية
Unix timestamp = (date − 1970-01-01 00:00:00 UTC) in seconds. Millisecond timestamp = seconds × 1000. JavaScript: Date.now() (ms), Math.floor(Date.now()/1000) (s). PHP: time(). Python: import time; time.time(). SQL: UNIX_TIMESTAMP() (MySQL), EXTRACT(EPOCH FROM NOW()) (PostgreSQL).
حالات الاستخدام الشائعة
- Debugging API responses with timestamp fields
- Converting log file timestamps to local time
- Setting expiration times for JWT tokens, cookies, or cache entries
- Database: comparing timestamps across timezone-unaware systems
- Checking when a file was created from its filesystem timestamp
الأسئلة الشائعة
أدوات ذات صلة
كل الأدوات →دمج هذه الأداة في موقعك
مجاني للاستخدام الشخصي والتجاري. فقط انسخ الكود أدناه.