# Time Converter — Examples

> Concrete Time Converter walkthroughs: decode a Unix timestamp, turn a date into a timestamp, fetch server time, calculate spans, and compare time zones.

Source: https://www.jpkc.com/db/en/tools/time/examples/

Back to overview: [Time Converter](https://www.jpkc.com/db/en/tools/time/) · Open the live tool: [www.jpkc.com/tools/time/](https://www.jpkc.com/tools/time/)

This page shows the **Time Converter** through concrete walkthroughs. The values used are examples. How the individual functions work in detail is covered in the [manual](https://www.jpkc.com/db/en/tools/time/manual/).

## Example 1: Decode a Unix timestamp

Goal: you find the bare value `1700000000` in a log and want to know which moment that is.

1. Switch to the **Convert** tab.
2. Enter `1700000000` into the **Unix Timestamp** field.
3. Make sure the card footer has `CET` under **Timezone** and your preferred format under **Language Format** (e.g. `English`).
4. Click the **Convert** button next to the field.

**Result:** the output field shows the moment in eleven formats. In CET, among others:

```
1700000000
2023-11-14 23:13:20 +01:00
2023-11-14T23:13:20+01:00
11/14/2023
November 14, 2023
November 14, 2023 11:13 PM
Tuesday, November 14, 2023 11:13 PM
```

The same instant would be **November 14, 2023, 22:13:20** in UTC (`Etc/GMT`) — one hour earlier in the display, because the timestamp itself is time-zone-independent.

## Example 2: Look at the start of the Unix epoch

Goal: understand what the value `0` stands for.

1. In the **Convert** tab, enter `0` into the **Unix Timestamp** field.
2. Set **Timezone** to `Etc/GMT` (UTC).
3. Click **Convert**.

**Result:** you land at the beginning of Unix time, **January 1, 1970, 00:00:00 UTC**. In CET the same second would show as `1970-01-01 01:00:00 +01:00` — a neat illustration that Unix seconds always count from this zero point.

## Example 3: Turn a date into a Unix timestamp

Goal: you need the timestamp for a specific date for an API call.

1. In the **Convert** tab, set the dropdowns at the top: **Year** `2024`, **Month** `06`, **Day** `01`, **Hour** `12`, **Minute** `00`, **Second** `00`.
2. Choose time zone and language format as needed.
3. Click the **Convert** button next to the date fields.

**Result:** the output field shows the same eleven-line block — and **line 1 holds the matching Unix timestamp in seconds**, which you can copy and reuse directly. Next to it you immediately see the ISO 8601 form and all localized spellings, so you can check you picked the right moment.

## Example 4: Fetch the server time as a reference

Goal: get a reliable current timestamp, independent of a (perhaps mis-set) local machine clock.

1. Switch to the **Convert** tab.
2. Click the **Get Server Time** button.
3. The **Unix Timestamp** field fills with the **server clock's** current timestamp.
4. Click **Convert** to turn that value into readable formats.

**Result:** you have a timestamp straight from the server time (`/tools/time/time/`) — useful as a neutral reference, for instance to check how far your local clock drifts.

## Example 5: How long until a deadline?

Goal: calculate the span between *now* and a future date.

1. Switch to the **Timeago** tab.
2. Under **Start Date & Time**, enter the target date, e.g. **Year** `2027`, **Month** `01`, **Day** `01`, time `00:00:00`.
3. Click the **Calculate from Now** button.

**Result:** the output names the distance split by unit — `Years`, `Months`, `Day`, `Hours`, `Minutes`, `Seconds` — where **each line gives the full distance in that single unit** (the total number of days *or* the total number of hours, not a decomposition). Below comes a relative phrasing like "in 7 months" and the precise breakdown, e.g. `7 months 8 days …`. If the start date lies in the past, the values turn negative and the relative line reads "… ago".

## Example 6: Measure the duration between two points

Goal: find out how much time lies between a project start and a release.

1. In the **Timeago** tab, under **Start Date & Time** enter the earlier point, e.g. `2024-01-15 09:00:00`.
2. Under **End Date & Time**, the later point, e.g. `2024-11-30 18:30:00`.
3. Click the **Calculate Start/End Range** button.

**Result:** the output shows the distance by unit (each as a total) and closes with the **precise breakdown**, which decomposes the span into a single readable chain of months, days, hours, and minutes. There's no `fromNow` line here by design, because the comparison is between start and end, not against *now*.

---

There's more on the individual functions in the [manual](https://www.jpkc.com/db/en/tools/time/manual/), strategic notes and pitfalls in the [tips & tricks](https://www.jpkc.com/db/en/tools/time/tips/). To get started right away, head to the [tool](https://www.jpkc.com/tools/time/).

