diff options
| author | Filipe Paniguel <90577992+lpnh@users.noreply.github.com> | 2024-02-13 16:12:04 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-13 20:12:04 +0100 |
| commit | b93abd23ee3660fb9117dfdc7c0b0e6da480dc8a (patch) | |
| tree | 6a71dc7a01a59aeb4b835c98e672105d2afdcf41 /README.md | |
| parent | chore: update nix flake (diff) | |
| download | sl0pstatus-b93abd23ee3660fb9117dfdc7c0b0e6da480dc8a.tar.gz sl0pstatus-b93abd23ee3660fb9117dfdc7c0b0e6da480dc8a.tar.xz sl0pstatus-b93abd23ee3660fb9117dfdc7c0b0e6da480dc8a.zip | |
fix: small typo on readme (#39)
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -209,15 +209,18 @@ command_NAME_rendermode "static" **Handle** `{datetime}` Print the date and/or time by the given format string. Due to the WASM sandbox -the timezone cannot be determined from the system. You can configure it the +the timezone cannot be determined from the system. You can configure it with the `datetime_timezone` parameter. Choose the according string from the -chrono documentation: [https://docs.rs/chrono-tz/latest/chrono_tz/enum.Tz.html](https://docs.rs/chrono-tz/latest/chrono_tz/enum.Tz.html) +chrono documentation: [https://docs.rs/chrono-tz/latest/chrono_tz/enum.Tz.html](https://docs.rs/chrono-tz/latest/chrono_tz/enum.Tz.html). +For the `datetime_format` syntax, you can also check the specifiers table +available in the chrono documentation: +[https://docs.rs/chrono/latest/chrono/format/strftime/index.html](https://docs.rs/chrono/latest/chrono/format/strftime/index.html). ```kdl # theme formatting for colors. Datetime output is printed in {format}. datetime "#[fg=#6C7086,bold] {format} " -# format of the date. e.g. if you'd like to only show the time +# format of the date datetime_format "%A, %d %b %Y %H:%M" # timezone to print |
