Metadata-Version: 2.5
Name: heinzel-clock
Version: 0.9.6
Summary: What time it is for everyone on the team: a Heinzelmännchen plugin.
Project-URL: Source, https://github.com/helmut-hoffer-von-ankershoffen/heinzel-plugins/tree/main/plugins/heinzel-clock
Project-URL: Changelog, https://github.com/helmut-hoffer-von-ankershoffen/heinzel-plugins/blob/main/plugins/heinzel-clock/CHANGELOG.md
Project-URL: Issues, https://github.com/helmut-hoffer-von-ankershoffen/heinzel-plugins/issues
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: heinzel<0.10,>=0.9.16
Description-Content-Type: text/markdown

# heinzel-clock: the World Clock

What time it is for everyone on the team: a first-party [Heinzelmännchen](https://github.com/helmut-hoffer-von-ankershoffen/heinzel) plugin with a globe, a sidebar countdown and a footer clock.

Included in the standard app.

```bash
hz setup clock                            # pick the team's time zones and the working hours in each
hz clock                                  # the team's local times; --json for agents
hz system config set clock.zones '[{ name = "Europe/Berlin", hours = [9, 18] }, "America/New_York"]'
```

Each zone is an IANA name, which gets working hours 9 to 18, or a table with its own `hours`. The same operation is
the MCP tool `clock` (`hz system serve mcp`) and `GET /clock` (`hz system serve api`); the zones are checked by
`hz system doctor`, and `hz setup` includes the World Clock's optional setup step.

The settings before per-zone hours (`zones` as names and one `working_hours` for all) are still read, and
`hz system doctor` reports them as degraded. `hz setup clock` rewrites them in the new shape when they are in your
user file; remove `working_hours` from a project `hz.toml` or `HZ_CLOCK__WORKING_HOURS` yourself.

The World Clock sidebar shows each city's workday countdown. Its markers retain bright outlines through night
shading. On hosts that support detail badges, the footer pane also shows the Primary tag and working, sleeping or
off-duty icon; older hosts keep the primary designation as text.

Development and release commands: [repository guide](../../README.md).


The fallback land outline is simplified [Natural Earth land](https://www.naturalearthdata.com/about/terms-of-use/)
(public domain); representative zone points come from IANA's public-domain zone.tab. Bundled frontend dependency
license notices are packaged alongside the built view.

<!-- screenshots:start -->
## Screenshots

<img src="docs/assets/screenshots/world-clock.png" alt="Find overlap across Berlin, New York and Los Angeles with the World Clock — fictional demonstration time" width="960">

Find overlap across Berlin, New York and Los Angeles with the World Clock — fictional demonstration time

<img src="docs/assets/screenshots/team-overview.png" alt="Fictional team working hours at a glance: Today, sidebar ticker and primary footer clock" width="960">

Fictional team working hours at a glance: Today, sidebar ticker and primary footer clock

<img src="docs/assets/screenshots/footer-detail.png" alt="Inspect all configured time zones from the primary footer clock — fictional demonstration data" width="960">

Inspect all configured time zones from the primary footer clock — fictional demonstration data

<img src="docs/assets/screenshots/phone-world-clock.png" alt="The globe and three fictional team clocks on a phone — fixed demonstration time" width="960">

The globe and three fictional team clocks on a phone — fixed demonstration time

<img src="docs/assets/screenshots/terminal-current.png" alt="Fictional demo team at 15:30 UTC: Berlin and New York are working; Los Angeles starts in 30 minutes." width="960">

Fictional demo team at 15:30 UTC: Berlin and New York are working; Los Angeles starts in 30 minutes.

<img src="docs/assets/screenshots/terminal-overlap.png" alt="Preview 16:30 UTC: all three fictional demo zones are within working hours." width="960">

Preview 16:30 UTC: all three fictional demo zones are within working hours.

<details>
<summary>Command line</summary>

<img src="docs/assets/screenshots/cli-times.png" alt="The same fictional team zones and working hours in the CLI — fixed demonstration time" width="960">

The same fictional team zones and working hours in the CLI — fixed demonstration time

</details>

[Open the screenshot gallery](docs/assets/screenshots/index.html).
<!-- screenshots:end -->
