Nepedia
Back to Discover
Fluent Reader
💻

System time

technology Maturity 9-11 Next article →

Computers need a way to know what time it is. This is called system time. It is the computer's own idea of a specific moment. Most systems do not use a clock like the one on your wall. Instead, they use a system clock to count tiny units. These units are often called ticks. The clock counts how many ticks have happened since a starting point. This special starting date is called an epoch.

Unix time
Unix time

How does this counting work? A system clock is often a programmable interval timer. This timer sends a signal to the CPU at regular times. This signal is called an interrupt. When the CPU receives this, it stops its current task for a moment. It then runs a small routine to add one tick to the counter. After the tick is added, the CPU goes back to its original work. This way, the computer keeps track of time even while it is busy.

Unix time
Unix time

In the past, computers were different. Many first-generation personal computers did not track dates or times at all. This included early models like the Apple II and the Commodore PET. Some systems, like CP/M, also did not have this feature. Later, people could add special boards to IBM PCs to track time. The IBM AT was the first widely available PC with time hardware built right into its motherboard.

Unix time
Unix time

Different systems use different rules for their counts. Unix and POSIX systems use Unix time. This counts the seconds since January 1, 1970. Windows uses a different method. It counts 100-nanosecond ticks since January 1, 1601. Some systems might face a big hard job soon. This is called the Year 2038 problem. It happens because 32-bit systems will run out of bits to store the count. This could cause many software and hardware errors.

Unix time
Unix time

You see system time in many places every day. Most modern devices like cell phones and cameras use it. Even household items like microwave ovens and air conditioners keep track of time. Some small tools, like an Arduino, might not have their own time hardware. These small tools often get the time from a server or a person. This helps them know the correct time to start their tasks.

Unix time
Unix time
374 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Unix time.png
Unix time.png
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.