# Install cctz with Homebrew, apt, dnf, Nix

C++ library for translating between absolute and civil times. Version 2.5 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:cctz
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cctz
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install libcctz-dev
```

  Evidence: Debian stable package indexes: libcctz-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install cctz
```

  Evidence: Fedora Rawhide package metadata: cctz from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#cctz
```

  Evidence: nixpkgs package indexes: pkgs/by-name/cc/cctz/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:cctz
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cctz>
- **Version:** 2.5
- **Source summary:** C++ library for translating between absolute and civil times
- **Homepage:** <https://github.com/google/cctz>
- **Repository:** <https://github.com/google/cctz>
- **Upstream docs:** <https://github.com/google/cctz#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/google/cctz/archive/refs/tags/v2.5.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- time_tool (cli)
- time_tool (alias)

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.5
- Local data: ok
- Upstream repository: https://github.com/google/cctz
- Upstream latest detected: v2.5 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

CCTZ is Google's C++ date, civil-time, and time-zone library for converting between absolute time and human civil time using IANA time-zone data. It is packaged both as a library and, in Homebrew, with the time_tool example executable.

### Project history

The official repository was created in 2015. The README says CCTZ contains a Civil-Time Library and a Time-Zone Library that cooperate with C++ <chrono>, giving programmers tools for date, time, and time-zone work.

CCTZ had a v1.0 release in March 2016 and a v2.0 release in April 2016, followed by v2.1 in 2017, v2.2 in 2018, v2.3 in 2019, v2.4 in 2024, and v2.5 in 2025.

### Adoption history

The README documents Bazel as the preferred build system while also supporting Make and CMake. The input package facts list Homebrew, Debian/Ubuntu libcctz-dev, Fedora/DNF, and Nix packages, showing adoption as a reusable C++ library rather than only as an application.

### How it is used

CCTZ is used by C++ programs that need correct civil-date arithmetic and conversion between time zones and absolute time points. The README points users to cctz/civil_time.h, cctz/time_zone.h, examples, Bazel, CMake, and system-installed IANA zoneinfo data.

### Why package nerds care

CCTZ is package-nerd significant because time-zone handling is notoriously edge-case heavy, and this library packages a focused C++ solution around IANA data before broad standard-library time-zone support was common in deployed toolchains.

### Timeline

- 2015: Official GitHub repository created.
- 2016: v1.0 and v2.0 releases published.
- 2019: v2.3 release published.
- 2024: v2.4 release published.
- 2025: v2.5 release published.

### Related projects

- The README references C++ <chrono>, the IANA time-zone database, Bazel, GoogleTest, and CMake.
- The README also links older ISO C++ proposals for standardizing civil-time and time-zone libraries.

### Sources

- <https://api.github.com/repos/google/cctz>
- <https://github.com/google/cctz>
- <https://github.com/google/cctz#readme>
- <https://formulae.brew.sh/api/formula/cctz.json>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cctz
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libcctz-dev - 2.4+dfsg1-2: normalized package name match | Debian stable package indexes: libcctz-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library for computing dates, times and time zones, development files | https://github.com/google/cctz
- Debian apt - libcctz-doc - 2.4+dfsg1-2: normalized package name match | Debian stable package indexes: libcctz-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library for computing dates, times and time zones, documentation | https://github.com/google/cctz
- Debian apt - libcctz2.4 - 2.4+dfsg1-2: normalized package name match | Debian stable package indexes: libcctz2.4 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library for computing dates, times and time zones, shared library | https://github.com/google/cctz
- Nix - cctz: normalized package name match | nixpkgs package indexes: pkgs/by-name/cc/cctz/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcctz-dev - 2.3+dfsg1-5build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcctz-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library for computing dates, times and time zones, development files | https://github.com/google/cctz
- Ubuntu apt - libcctz-doc - 2.3+dfsg1-5build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcctz-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library for computing dates, times and time zones, documentation | https://github.com/google/cctz
- Ubuntu apt - libcctz2 - 2.3+dfsg1-5build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcctz2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library for computing dates, times and time zones, shared library | https://github.com/google/cctz
- dnf - cctz - 2.5-3.fc44: normalized package name match | Fedora Rawhide package metadata: cctz from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Translating between absolute and civil times using time zone rules | https://github.com/google/cctz
- dnf - cctz-devel - 2.5-3.fc44: normalized package name match | Fedora Rawhide package metadata: cctz-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Translating between absolute and civil times using time zone rules | https://github.com/google/cctz


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [manticoresearch](https://www.automicvault.com/pkg/brew/manticoresearch/) - Popular package that depends on this formula.
- [znc](https://www.automicvault.com/pkg/brew/znc/) - Popular package that depends on this formula.
- [dateutils](https://www.automicvault.com/pkg/brew/dateutils/) - Shares av.db curated category or tags: cli, date-time, developer-tools.
- [cpp-peglib](https://www.automicvault.com/pkg/brew/cpp-peglib/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, library.
- [ctemplate](https://www.automicvault.com/pkg/brew/ctemplate/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, library.
- [enchant](https://www.automicvault.com/pkg/brew/enchant/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, library.
- [htmlcxx](https://www.automicvault.com/pkg/brew/htmlcxx/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, library.
- [log4cpp](https://www.automicvault.com/pkg/brew/log4cpp/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, library.
- [yazpp](https://www.automicvault.com/pkg/brew/yazpp/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, library.
- [aarch64-elf-gcc](https://www.automicvault.com/pkg/brew/aarch64-elf-gcc/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools.
- [castxml](https://www.automicvault.com/pkg/brew/castxml/) - Local package facts share a topical domain. Shared terms: c-plus-plus, cli, developer, developer-tools, plus.
- [ccls](https://www.automicvault.com/pkg/brew/ccls/) - Local package facts share a topical domain. Shared terms: c-plus-plus, cli, developer, developer-tools, plus.

## Combined YAML source

View the package source record on GitHub. [combined/cctz.yml](https://github.com/automic-vault/db/blob/main/combined/cctz.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
