Skip to content

Commit

Permalink
Merge pull request #44 from thebetar/main
Browse files Browse the repository at this point in the history
docs: expand time-format.md howtos with simple example
  • Loading branch information
kgilmer committed Mar 5, 2024
2 parents 444e97a + 896dc90 commit a359a6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/docs/howtos/time-format.md
Expand Up @@ -17,3 +17,6 @@ The date format can be specified by selecting the appropriate region in Settings
{{< img "images/regolith-screenshot-settings-region.png" "">}}

The date and time formats can also be explicitly set via `Xresources`. To do so, override the `i3xrocks.date.format2` `Xresource` key. The format specification for date is simply the arguments that would be passed to the `date` command on the command line. For example, to print the year in 4 digits, specify `+%Y`.

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`

0 comments on commit a359a6a

Please sign in to comment.