macOS
brew install cctzlocal Homebrew formula metadata
安装
brew install cctzlocal Homebrew formula metadata
sudo dnf install cctzFedora Rawhide package metadata · cctz · 来源: dl.fedoraproject.org
nix profile install nixpkgs#cctznixpkgs package indexes · pkgs/by-name/cc/cctz/package.nix · 来源: api.github.com
sudo apt install libcctz-devDebian stable package indexes · libcctz-dev · 来源: deb.debian.org
概览
C++ library for translating between absolute and civil times
历史
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.
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.
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.
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.
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
time_tool | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/google/cctz
安装元数据
| 软件包键 | brew:cctz |
|---|---|
| 版本 | 2.5 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cctz |
| 主页 | https://github.com/google/cctz |
| 仓库 | https://github.com/google/cctz |
| 上游文档 | https://github.com/google/cctz#readme |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/google/cctz/archive/refs/tags/v2.5.tar.gz |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libcctz-dev 2.4+dfsg1-2
Library for computing dates, times and time zones, development files
https://github.com/google/cctz
sudo apt install libcctz-devlibcctz-doc 2.4+dfsg1-2
Library for computing dates, times and time zones, documentation
https://github.com/google/cctz
sudo apt install libcctz-doclibcctz2.4 2.4+dfsg1-2
Library for computing dates, times and time zones, shared library
https://github.com/google/cctz
sudo apt install libcctz2.4cctz
nix profile install nixpkgs#cctzlibcctz-dev 2.3+dfsg1-5build1
Library for computing dates, times and time zones, development files
https://github.com/google/cctz
sudo apt install libcctz-devlibcctz-doc 2.3+dfsg1-5build1
Library for computing dates, times and time zones, documentation
https://github.com/google/cctz
sudo apt install libcctz-doclibcctz2 2.3+dfsg1-5build1
Library for computing dates, times and time zones, shared library
https://github.com/google/cctz
sudo apt install libcctz2cctz 2.5-3.fc44
Translating between absolute and civil times using time zone rules
https://github.com/google/cctz
sudo dnf install cctzcctz-devel 2.5-3.fc44
Translating between absolute and civil times using time zone rules
https://github.com/google/cctz
sudo dnf install cctz-devel来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.