Unix Timestamp Converter

A Unix timestamp, also called epoch time or POSIX time, is simply the number of seconds that have elapsed since 1 January 1970 at 00:00:00 UTC. It is the universal standard that operating systems, databases and programming languages use to store and compare moments in time. Because it is a single integer with no time zone embedded, it sidesteps all the complications of daylight saving time, local offsets and calendar drift: two systems anywhere in the world comparing the same Unix timestamp are always looking at the same instant. You encounter Unix timestamps constantly in software development: in server logs, in database records, in API responses, in file system metadata. This converter works in both directions. In the first mode, you enter a Unix timestamp in seconds and the tool decodes it to a human-readable date and time in both UTC and your local browser time zone. The current timestamp is shown and updated live so you can see the seconds ticking over. In the second mode, you enter a date and time (in your local time zone, as your browser interprets it) and the tool converts it to the corresponding Unix timestamp in seconds. The worked example uses the timestamp 1719230400, which corresponds to 2024-06-24 12:00:00 UTC. You can also click the button to paste the current timestamp into the input field.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner: Premium Homes
2024-06-24
date (UTC)
UTC date and time2024-06-24 12:00:00
Local date and time--
Day of weekMonday
Current epoch--

UTC = Coordinated Universal Time. Local time is your browser's local time zone. For date-to-timestamp, the date entered is treated as local time.

How it works

The calculator uses the JavaScript Date object to convert between timestamps and dates. For timestamp to date: new Date(timestamp * 1000) creates a Date object (JavaScript uses milliseconds internally). The UTC date and time are read using toISOString() and the local date using toLocaleString(). For date to timestamp: new Date(dateString).getTime() / 1000 converts a date string to epoch seconds. The current timestamp is Math.floor(Date.now() / 1000), updated every second.

Worked example

Timestamp 1719230400 seconds: dividing by 86400 (seconds per day) gives the number of days since 1 Jan 1970. Converting via JavaScript's Date object gives 2024-06-24 12:00:00 UTC. In New Zealand Standard Time (UTC+12 in winter), this is 2024-06-25 00:00:00 NZST. The day of the week is Monday. These match the defaults pre-filled in the calculator above.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.