🍺 BREW Explorer

← all formulae

cctz

brew install cctz v2.5 Apache-2.0

C++ library for translating between absolute and civil times

37
30-day installs · #5353
122
90-day · #5166
617
365-day · #4671
650
★ GitHub stars · updated 4mo ago

Build dependencies

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "C++ library for translating between absolute and civil times",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:13+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "cctz",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-04-24T16:28:40Z",
  "github_readme_excerpt": "This is not an official Google product.\n\n# Overview\n\nCCTZ contains two libraries that cooperate with `\u003cchrono\u003e` to give C++\nprogrammers all the necessary tools for computing with dates, times, and time\nzones in a simple and correct manner. The libraries in CCTZ are:\n\n*   **The Civil-Time Library** \u0026mdash;\u00a0This is a header-only library that\n    supports computing with human-scale time, such as dates (which are\n    represented by the `cctz::civil_day` class). This library is declared in\n    [`include/cctz/civil_time.h`](https://github.com/google/cctz/blob/master/include/cctz/civil_time.h).\n*   **The Time-Zone Library** \u0026mdash;\u00a0This library uses the IANA time zone\n    database that is installed on the system to convert between *absolute time*\n    and *civil time*. This library is declared in\n    [`include/cctz/time_zone.h`](https://github.com/google/cctz/blob/master/include/cctz/time_zone.h).\n\nThese libraries are currently known to work on **Linux**, **Mac OS X**, and\n**Android**.\n\nThey will also work on **Windows** if you install the zoneinfo files. We are\ninterested, though, in an implementation of the cctz::TimeZoneIf interface that\ncalls the Windows time APIs instead. Please contact us if you\u0027re interested in\ncontributing.\n\n# Getting Started\n\nCCTZ is best built and tested using the [Bazel](https://bazel.io) build system\nand the [Google Test](https://github.com/google/googletest) framework. (There is\nalso a simple [`Makefile`](https://github.com/google/cctz/blob/master/Makefile)\nand a\n[`CMakeLists.txt`](https://github.com/google/cctz/blob/master/CMakeLists.txt)\nthat should work if you\u0027re unable to use Bazel.)\n\n1.  Download/install\n    [Bazel](https://docs.bazel.build/versions/master/install.html)\n2.  Get the cctz source: `git clone https://github.com/google/cctz.git` then `cd\n    cctz`\n3.  Build cctz and run the tests: `bazel test :all`\n\nWith CMake:\n\n1.  Make sure you have CMake \u003e= 3.16 installed.\n2.  Get the cctz source: `git clone https://github.com/google/cctz.gi",
  "github_repo": "google/cctz",
  "github_stars": 650,
  "github_topics": [],
  "homepage": "https://github.com/google/cctz",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 37,
  "installs_365d": 617,
  "installs_90d": 122,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "cctz",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 5353,
  "rank_365d": 4671,
  "rank_90d": 5166,
  "raw_hash": "ff83a5947ae4a293",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/cctz.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "2.5",
  "versioned_formulae": [],
  "why_use_this": null
}