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 →

What to know first

Related concepts

Questions about time_t

What is time_t?

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

Which Manning books explain time_t?

Modern C, Third Edition and Rust in Action: Systems programming concepts and techniques.

What should I know before learning time_t?

Manning books that teach time_t usually introduce derived type and timestamp first.

What is time_t a kind of?

Time_t is a kind of arithmetic type. An arithmetic type is a C type representing integer, floating-point, or complex numeric values.

What is time_t part of?

Time_t is part of struct timespec. struct timespec is a C structure type representing a time value with integral seconds and a fractional nanosecond component.

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.