Skip to content

Commit

Permalink
Merge pull request #62 from kronn/update-date-time-format-how-to
Browse files Browse the repository at this point in the history
Update date/time format HowTo
  • Loading branch information
khos2ow authored Jan 27, 2025
2 parents d77390c + b929637 commit 5f79004
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions content/docs/howtos/time-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ description: >
Change the date/time format used in the bar
---

{{< hint danger >}}
NOTICE: This page was copied from the [Regolith 1.x website](https://regolith-linux.org) and has not been updated for Regolith 2. It may contain out of date information.
{{< /hint >}}

The time format (12 or 24 hour) can be specified in Settings:

{{< img "images/regolith-screenshot-settings-time-format.png" "">}}
Expand All @@ -22,11 +18,14 @@ The date and time formats can also be explicitly set via `Xresources`. To do so,
For example the following line can be added to use the `YYYY-MM-DD hh:mm` format:
`i3xrocks.date.format2: %Y-%m-%d %H:%M`

The complete format that is support is as follows:
The most useful formats that are supported are as follows:

- `%Y` prints year as `YYYY`
- `%y` prints year as `YY`
- `%m` prints month as `MM`
- `%m` prints minute as `mm`
- `%d` prints day as `DD`
- `%H` prints hours in 24 hour format
- `%I` prints hours in 12 hour format
- `%M` prints minute as `mm`

For more details and placeholders, please look at `date --help`.

0 comments on commit 5f79004

Please sign in to comment.