Unix Time Stamp – Epoch Converter

The Epoch Converter is a simple tool that allows you to convert Unix timestamps (epoch time) to human-readable dates and vice versa. Unix timestamp represents the number of seconds that have passed since January 1, 1970 (the Unix epoch).

How to Use Epoch Converter:

  1. Enter Epoch Time: Input the Unix timestamp in the provided field.
  2. Click Convert: Press the “Convert” button to see the corresponding human-readable date.

Formula Used Unix Time Stamp:

The formula for converting Unix timestamp to a date is straightforward. It involves multiplying the Unix timestamp by 1000 to convert it from seconds to milliseconds, and then using JavaScript’s Date object to create a readable date and time.

javascriptCopy code

// Convert Unix timestamp to a date var convertedDate = new Date(unixTimestamp * 1000);

Example Epoch Converter:

Suppose you have a Unix timestamp of 1609459200. Entering this value and clicking “Convert” would yield a human-readable date of January 1, 2021, 00:00:00 (UTC).

Feel free to use this Epoch Converter to quickly translate between Unix timestamps and readable dates.

Similar Posts