The repository or configuration that created this release differ from a previous release. View details.
powerline-date
A drop-in replacement for Powerline's
built-in date segment that adds timezone support and lets a single segment
rotate through several timezones on a fixed interval.
Features
- Render the time or date in any IANA timezone.
- Rotate one segment through a list of zones — each with its own
formatand colorscheme highlight group — instead of stacking a segment per zone. - Stateless: the active zone is derived from the wall clock, so nothing is kept between renders and no daemon state is required.
Installation
Install into the same environment as Powerline. If you manage Powerline with pipx:
pipx inject powerline-status powerline-date
Otherwise:
pip install powerline-date
Usage
The package exposes powerline_date.date, usable anywhere a Powerline segment
function is accepted (e.g. a tmux theme's segments).
A single timezone
{
"function": "powerline_date.date",
"name": "utc_time",
"args": {
"format": "%H:%M %Z",
"timezone": "UTC"
}
}
Rotating through timezones
One segment can cycle through a list of zones. Each entry may carry its own
format and highlight_group (a suffix appended to time:), so each zone can
be colored differently in your colorscheme.
{
"function": "powerline_date.date",
"name": "rotating_time",
"args": {
"cycle_seconds": 30,
"timezones": [
{"timezone": "America/New_York", "format": "%I:%M %p 🗽", "highlight_group": "eastern"},
{"timezone": "America/Chicago", "format": "%I:%M %p %Z 🤠", "highlight_group": "central"},
{"timezone": "UTC", "format": "%H:%M %Z 👾", "highlight_group": "UTC"}
]
}
}
The active entry is chosen deterministically from the current time, so no state
is kept between renders. For the rotation to look smooth, Powerline must
re-render at least as often as cycle_seconds. In tmux:
set -g status-interval 5
Arguments
| Argument | Default | Description |
|---|---|---|
format |
%Y-%m-%d |
strftime format. Used as the fallback when a rotation entry omits its own format. |
timezone |
None |
IANA name (e.g. America/New_York). Local time is used when unset. |
timezones |
None |
List of rotation entries, each with timezone and optional format / highlight_group. Takes precedence over timezone. |
cycle_seconds |
5 |
Seconds each entry is shown before rotating to the next. |
Colorscheme
Each rendered entry uses the highlight groups
["time:<highlight_group>", "time"], falling back to time when the specific
group is undefined, with time:divider for the divider. Define these in your
colorscheme to color each zone:
{
"groups": {
"time": {"fg": "white", "bg": "darkblue"},
"time:divider": {"fg": "black", "bg": "darkblue"},
"time:eastern": {"fg": "white", "bg": "darkblue"},
"time:central": {"fg": "white", "bg": "darkgreen"},
"time:UTC": {"fg": "white", "bg": "darkestpurple"}
}
}
When highlight_group is omitted, the timezone name itself is used as the
suffix (e.g. time:America/New_York).
Metadata
Release files for powerline-date 202605.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Change of provenance
The repository or configuration that created these release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| powerline_date-202605.0.tar.gz | 4.2 kB | With provenance | Details for powerline_date-202605.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| powerline_date-202605.0-py3-none-any.whl | Python 3 | none | any | Details for powerline_date-202605.0-py3-none-any.whl |
Total release size: 7.1 kB
Release files / powerline_date-202605.0.tar.gz
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | powerline_date-202605.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
401751924c4e65a52ae466027a72af3456d3291ff281268c557463c699eb3934
|
|
BLAKE2b-256 checksum How to use checksums |
497a03b84564388da4c326241600ccbd5500dda3572a50c3fda8638f2ea9040e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logRelease files / powerline_date-202605.0-py3-none-any.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | powerline_date-202605.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0773ab6cce70075bcd5fa625ce372b6fb19f0ab724d8b705124d2861e5f7c19
|
|
BLAKE2b-256 checksum How to use checksums |
fb70c48a558a4b9d9fd8d412c96d5df2e782ff0f3a85ff3189aec6c6a3335ef3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logSecurity for powerline-date 202605.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Change of provenance
The configuration that created this release differs from a previous release.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Attestation for powerline_date-202605.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.