liveBook · Manning

Unix epoch

The Unix epoch is the reference instant at 00:00:00 UTC on January 1, 1970, from which Unix time is measured.

How 2 Manning books explain it

Rust in Action: Systems programming concepts and techniques

An epoch is the defined reference point from which elapsed time is measured.

How it is used
Uses the epoch as the reference point for clock readings and timestamp formatting.
How deep it goes
Explains clock counters and compares time representations, including differing epochs, precision, and fixed-width ranges.
Examples
Illustrates timestamp formatting in a Rust clock and offline timekeeping on a Raspberry Pi thermal-camera device.
What you can do after
Apply it via chrono to print a Unix timestamp and compare it with formatted time strings.

Read how Rust in Action: Systems programming concepts and techniques explains Unix epoch →

Learn Rust in a Month of Lunches

How it is used
Measures elapsed system time from January 1, 1970, using the epoch as a reference instant.
How deep it goes
Defines the epoch and shows how Rust measures elapsed time from it with `duration_since`.
Examples
Shows Rust code printing the duration from `SystemTime::now()` to `UNIX_EPOCH`.
What you can do after
Apply Rust's standard library to print the duration elapsed since the Unix epoch.

Read how Learn Rust in a Month of Lunches explains Unix epoch →

Also covered in

What to know first

Related concepts

Questions about Unix epoch

What is Unix epoch?

The Unix epoch is the reference instant at 00:00:00 UTC on January 1, 1970, from which Unix time is measured.

Which Manning books explain Unix epoch?

Rust in Action: Systems programming concepts and techniques and Learn Rust in a Month of Lunches.

What should I know before learning Unix epoch?

Manning books that teach Unix epoch usually introduce timestamp, data aggregation, daylight saving time and JSON first.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.