doc: clock

This commit is contained in:
Daniel Eklöf 2019-04-22 10:44:41 +02:00
parent 4b79603129
commit f7c9a1a47e

View file

@ -181,6 +181,48 @@ bar:
string: {text: "BAT: {capacity}% {estimate}"} string: {text: "BAT: {capacity}% {estimate}"}
``` ```
# CLOCK
This module provides the current date and time.
## TAGS
[[ *Name*
:[ *Type*
:[ *Description*
| time
: string
: Current time, formatted using the _time-format_ attribute
| date
: string
: Current date, formatted using the _date-format_ attribute
## CONFIGURATION
[[ *Name*
:[ *Type*
:[ *Req*
:[ *Description*
| time-format
: string
: no
: *strftime* formatter for the _time_ tag (default=*%H:%M*)
| date-format
: string
: no
: *strftime* formatter for the _date_ date (default=*%x*)
## EXAMPLES
```
bar:
left:
- clock:
time-format: "%H:%M %Z"
content:
string: {text: "{date} {time}"}
```
# SEE ALSO # SEE ALSO
*f00bar-particles*(5), *f00bar-tags*(5), *f00bar-decorations*(5) *f00bar-particles*(5), *f00bar-tags*(5), *f00bar-decorations*(5)