मुख्य सामग्री पर जाएँ
FreeOnlineTools Go
हिन्दी
how-to

Unix टाइमस्टैम्प को मानव-पठनीय तिथियों में कैसे बदलें (चरण-दर-चरण)

By FreeOnlineTools Team · Updated 2026-09-02

Quick Answer

Timestamp को तिथि में बदलने के लिए: Timestamp Converter में Unix timestamp पेस्ट करें और UTC तथा स्थानीय timezone में तिथि तुरंत दिखती है। तिथि को timestamp में बदलने के लिए: तिथि दर्ज करें। सारा प्रोसेसिंग स्थानीय है।

Introduction

Unix timestamp (epoch time या POSIX time भी कहलाता है) 1 जनवरी 1970, 00:00:00 UTC (Unix epoch) से बीते सेकंडों की संख्या है। Timestamp डेटाबेस, logs और API में व्यापक उपयोग होते हैं क्योंकि timezone-स्वतंत्र और तुलना में सरल हैं। लेकिन मनुष्य इन्हें सीधे नहीं पढ़ सकते —1693526400 बिना रूपांतरण के अर्थहीन है।

Step by Step

  1. Open the Timestamp Converter tool

    Go to the Timestamp Converter tool page. The tool supports bidirectional conversion: timestamp to date, and date to timestamp.

  2. Enter your Unix timestamp

    Paste the timestamp into the input field. The tool auto-detects whether the value is in seconds (10 digits) or milliseconds (13 digits). For example, 1693526400 is seconds, 1693526400000 is milliseconds.

  3. Read the human-readable date

    The tool converts the timestamp to a date and displays it in both UTC and your local timezone. For example, 1693526400 becomes 2023-09-01 00:00:00 UTC. The result appears instantly.

  4. Convert a date to a timestamp (reverse)

    To convert a date to a Unix timestamp, enter the date in the date input field. The tool computes the epoch value in both seconds and milliseconds. This is useful for API calls that require timestamps.

  5. Copy the result

    Click Copy to copy the converted date or timestamp to your clipboard for use in your application, log analysis, or API request.

Examples

Timestamp (seconds) to date

Input: 1693526400

Output: 2023-09-01 00:00:00 UTC

Timestamp (milliseconds) to date

Input: 1693526400000

Output: 2023-09-01 00:00:00 UTC

Date to Unix timestamp

Input: 2023-09-01 00:00:00 UTC

Output: 1693526400 (seconds) / 1693526400000 (milliseconds)

Current Unix epoch

Input: now

Output: Approximately 1725235200 (as of 2024-09-02)

Common Problems

  • Confusing seconds and milliseconds —JavaScript uses milliseconds (13 digits), Unix and most APIs use seconds (10 digits). Mixing them gives dates in 1970 or the year 50000+.
  • Timezone confusion —Unix timestamps are always UTC. When displaying, convert to the user's local timezone or specify UTC explicitly.
  • The Year 2038 problem —32-bit signed integers overflow on 2038-01-19 03:14:07 UTC. Use 64-bit integers or JavaScript numbers (which are 64-bit floats) to avoid this.
  • Negative timestamps —dates before 1970-01-01 have negative timestamps. Some systems do not support them.

Tips

  • Always check whether an API expects seconds or milliseconds —this is the most common timestamp bug.
  • Use ISO 8601 strings (e.g., "2023-09-01T00:00:00Z") for human-readable timestamps in APIs; use Unix epoch for storage and computation.
  • JavaScript Date.now() returns milliseconds; divide by 1000 and floor to get seconds.
  • Use our Timestamp Converter for instant, private conversion —no data leaves your browser.

Related Tools

Related Guides

References