# Epoch Time Calculator

> Convert Unix and Linux epoch time to a date, and back again.

Page: https://freecalculator.tech/tools/epoch-time-calculator

## How do I convert a Unix timestamp to a date?

A Unix timestamp counts the seconds since 1 January 1970 UTC, so converting it adds those seconds to that moment.

## Formula

Unix (epoch) time counts seconds since 1 January 1970 00:00:00 UTC. Milliseconds are the same count multiplied by 1,000.

- Unix (epoch) time counts seconds since 1 January 1970 00:00:00 UTC. Milliseconds are the same count multiplied by 1,000.
- Inputs used: Convert, Unix timestamp, Timestamp unit, Date and time (UTC), Add or subtract, Offset unit, Time format.
- Edge handling: Unix timestamp is required.; Date and time (UTC) is required.; Date and time (UTC) must use a valid calendar date..

## Inputs

- Convert
- Unix timestamp
- Timestamp unit
- Date and time (UTC)
- Add or subtract
- Offset unit
- Time format

## Worked example: Start of 2024

1704067200 seconds is 1 January 2024 at 00:00 UTC.
1. Start with Convert: toDate, Unix timestamp: 1704067200, Timestamp unit: seconds, Add or subtract: 0, Offset unit: seconds, Time format: 24.
2. Apply the method: Unix (epoch) time counts seconds since 1 January 1970 00:00:00 UTC. Milliseconds are the same count multiplied by 1,000.
3. 1704067200 seconds is 1 January 2024 at 00:00 UTC.

## Common questions

### How do I convert a Unix timestamp to a date?

A Unix timestamp counts the seconds since 1 January 1970 UTC, so converting it adds those seconds to that moment. Check the formula, example, and limitations on this page before using the result for a real everyday decision.

### What is Unix or Linux time?

It is the number of seconds elapsed since 1 January 1970 00:00:00 UTC, the standard timestamp used by Linux, Unix and most programming languages. Check the formula, example, and limitations on this page before using the result for a real everyday decision.

### Does it handle milliseconds?

Yes. Choose milliseconds as the unit, and every result also lists both seconds and milliseconds.

### Are leap seconds included?

No. Unix time ignores leap seconds by definition, so every day counts exactly 86,400 seconds.

### How do I use the Epoch Time Calculator?

Enter the required values for Convert, Unix timestamp, Timestamp unit, Date and time (UTC), Add or subtract, and the other fields shown. The calculator applies the formula on this page and shows the main result with any supporting breakdown so you can check the arithmetic.

### What formula does the Epoch Time Calculator use?

Unix (epoch) time counts seconds since 1 January 1970 00:00:00 UTC. Milliseconds are the same count multiplied by 1,000. The visible formula section above lists the calculation path and the edge cases the page handles, so the result can be checked without relying on the form alone.

## Limitations and assumptions

- Inputs outside the supported range are rejected rather than forced into a result.
- The result depends on the values you enter for this epoch time calculator; it does not supply missing rates, rules, prices, dates, or assumptions for you.

## Cite this page

- APA: Free Calculator. (n.d.). Epoch Time Calculator. https://freecalculator.tech/tools/epoch-time-calculator
- MLA: "Epoch Time Calculator." Free Calculator, https://freecalculator.tech/tools/epoch-time-calculator.
- Link: Epoch Time Calculator — Free Calculator, https://freecalculator.tech/tools/epoch-time-calculator
