Clock of the World
English
NorskEnglishDeutschEspañolFrançaisSvenska

Articles

Julian Day, Unix time and other time formats

How computers and scientists write time: Unix time, the year 2038 problem, ISO 8601, RFC 2822 and Julian Day.

Updated 22 November 2026

Contents

Why so many formats?

People write time in many ways. "3/4" can mean 3 April or 4 March. Computers need a format that cannot be misread. Over time several standards have grown up, each with its own purpose. With the time converter you can see the same moment in several formats at once.

Unix time

Unix time counts the seconds since 1 January 1970 at 00:00:00 UTC. That starting point is called the Unix epoch. The moment 1,000,000,000 was 9 September 2001 at 01:46:40 UTC.

The format is simple: a single number, with no time zone, easy to compare and calculate with. It is used in operating systems, databases, file systems and web services. Many systems, including JavaScript, count in milliseconds rather than seconds. Unix time skips leap seconds, so every day has exactly 86,400 seconds.

The year 2038 problem

Older systems store Unix time as a signed 32-bit number. The largest value is 2,147,483,647. It is reached on 19 January 2038 at 03:14:07 UTC. One second later the number wraps around and becomes negative, and the computer thinks it is 1901.

This resembles the Y2K problem. Most modern systems use 64 bits, and then the number lasts for many billions of years. But embedded systems, old software and some file formats may still use 32 bits. That is why developers are fixing the issue well before 2038.

ISO 8601

ISO 8601 is the international standard for dates and times. The order runs from largest to smallest: year, month, day, hour, minute and second. An example is 2026-11-22T14:30:00+01:00. The letter T separates the date from the time, and +01:00 gives the offset from UTC. A Z at the end means UTC.

The benefit is that the text sorts correctly and nobody can confuse day with month. The standard also covers week dates such as 2026-W34-1, which you can read about in the article on week numbers, and durations such as P3D for three days.

RFC 2822 and email

Email and HTTP headers often use the format from RFC 2822. It is written for people and looks like this: Sat, 01 Jan 2000 12:00:00 +0000. It has the weekday, date, month as an English abbreviation, time and the time zone as a number.

A newer format, RFC 3339, is a stricter subset of ISO 8601 and is widely used in internet protocols and programming interfaces.

Julian Day

The Julian Day (JD) counts days in one long sequence, with no months or years. Astronomers use it to calculate the time between observations without worrying about calendars. The count began at 12:00 UT on 1 January 4713 BC in the Julian calendar, so the day changes at noon, not midnight.

The moment 1 January 2000 at 12:00 UT has JD 2451545.0. The Unix epoch has JD 2440587.5. The Modified Julian Day (MJD) subtracts 2400000.5 and gives smaller numbers. Julian Day has nothing to do with the Julian calendar apart from the name. See also how the calendar handles leap years.

Related tools