liveBook · Manning

Time zone

A time zone is a geographic or rule-defined context whose rules determine local civil time relative to a reference time standard.

How 4 Manning books explain it

Rust in Action: Systems programming concepts and techniques

A time zone is a regional convention associating local civil times with offsets or rules relative to a reference time scale.

How it is used
Uses time zones to read local time and interpret user-supplied timestamps in a clock application.
How deep it goes
Defines time zones as political divisions and describes UTC-offset storage, without detailing regional rule databases.
Examples
Uses a local-time printing program and a user-supplied fixed-offset timestamp converted to local time.
What you can do after
Apply time zone handling via chrono to read local time and convert a fixed-offset timestamp for comparison.

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

Modern C

UTC is Coordinated Universal Time, the internationally used reference time scale for civil timekeeping.

How it is used
Explains how C programs convert calendar timestamps between UTC and local time zones.
How deep it goes
Defines UTC and contrasts conversion functions, but defers detailed global-state interfaces and pointer rationale.
Examples
Uses gmtime_s, localtime_s, mktime, strftime, and format strings as concrete interfaces.
What you can do after
Apply C library conversions to represent a timestamp as UTC or local broken-down time and format it as text.

Read how Modern C explains time zone →

Learn C++ by Example

A time zone is a geographic or rule-defined region whose local civil time is determined by a particular offset and calendar-time rules.

How it is used
Adjusts countdowns and schedules so local clock changes produce physically accurate elapsed-time calculations.
How deep it goes
Explains named-zone conversion and sys_time arithmetic, while stopping short of the full chrono feature set.
Examples
Uses Europe/London, the 2022 British Summer Time transition, and a local countdown implementation.
What you can do after
Apply it via C++20 time-zone facilities or the date library to calculate daylight-saving-aware countdowns.

Read how Learn C++ by Example explains time zone →

Troubleshooting Java, Second Edition

A time zone is a rule set that determines the local time offset and related date-time conventions for a geographic or system context.

How it is used
Standardizes log timestamps so developers can correlate past events during troubleshooting.
How deep it goes
Identifies timestamp mismatches and recommends consistent formats, stopping short of date-time implementation details.
Examples
Uses centralized logs from multiple regions and UTC standardization to illustrate event-correlation problems.
What you can do after
Diagnose misleading log timelines by checking and aligning the time zones of participating systems.

Read how Troubleshooting Java, Second Edition explains time zone →

Also covered in

What to know first

Related concepts

Questions about time zone

What is time zone?

A time zone is a geographic or rule-defined context whose rules determine local civil time relative to a reference time standard.

Which Manning books explain time zone?

Rust in Action: Systems programming concepts and techniques, Modern C, Learn C++ by Example and Troubleshooting Java, Second Edition.

What should I know before learning time zone?

Manning books that teach time zone usually introduce timestamp, atomic clock, conversational ai and ISO 8601 first.

What kinds of time zone are there?

Kinds of time zone include FixedOffset.

What is time zone a kind of?

Time zone is a kind of political division. A political division is a geographic area defined by political or administrative boundaries.

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.