liveBook · Manning

Time_t

time_t is an implementation-defined C arithmetic type used to represent calendar time or elapsed-time values.

How 2 Manning books explain it

Modern C, Third Edition

time_t is an implementation-defined C type used to represent calendar time values.

How it is used
Represents calendar timestamps and supports elapsed-time calculations through difftime.
How deep it goes
Defines its semantic role and portability limits, but stops short of describing its underlying representation.
Examples
Uses time(0), difftime(t1, t0), and a comparison with clock_t as concrete type examples.
What you can do after
Apply it via time() and difftime() when obtaining timestamps or calculating calendar-time differences.

Read how Modern C, Third Edition explains time_t →

Rust in Action: Systems programming concepts and techniques

time_t is a libc type alias representing elapsed whole seconds since the Unix epoch.

How it is used
Represents whole elapsed seconds when Rust code interacts with libc timekeeping and operating-system clock interfaces.
How deep it goes
Defines the alias and its clock-structure role, then stops short of prescribing one integer representation across platforms.
Examples
Uses timeval.tv_sec, timeval.tv_usec, timestamp conversion, and settimeofday to demonstrate a clock-setting operation.
What you can do after
Operate/configure system time through libc while preserving the platform’s expected seconds and fractional-seconds types.

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

Related concepts

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.