1yambar-modules-clock(5)       File Formats Manual      yambar-modules-clock(5)
2
3
4

NAME

6       clock - This module provides the current date and time
7

TAGS

9       ┌─────┬────────┬───────────────────────────────────────────────────────┐
10Name Type   Description                                           
11       ├─────┼────────┼───────────────────────────────────────────────────────┤
12       │time │ string │ Current time, formatted using the time-format attri‐  │
13       │     │        │ bute                                                  │
14       ├─────┼────────┼───────────────────────────────────────────────────────┤
15       │date │ string │ Current date, formatted using the date-format attri‐  │
16       │     │        │ bute                                                  │
17       └─────┴────────┴───────────────────────────────────────────────────────┘
18

CONFIGURATION

20       ┌────────────┬────────┬─────┬──────────────────────────────────────────┐
21Name        Type   Req Description                              
22       ├────────────┼────────┼─────┼──────────────────────────────────────────┤
23       │time-format │ string │ no  │ strftime formatter for the time tag (de‐ │
24       │            │        │     │ fault=%H:%M)                             │
25       ├────────────┼────────┼─────┼──────────────────────────────────────────┤
26       │date-format │ string │ no  │ strftime formatter for the date date     │
27       │            │        │     │ (default=%x)                             │
28       ├────────────┼────────┼─────┼──────────────────────────────────────────┤
29       │utc         │ bool   │ no  │ Use GMT instead of local timezone (de‐   │
30       │            │        │     │ fault=false)                             │
31       └────────────┴────────┴─────┴──────────────────────────────────────────┘
32

EXAMPLES

34           bar:
35             left:
36               - clock:
37                   time-format: "%H:%M %Z"
38                   content:
39                     string: {text: "{date} {time}"}
40

SEE ALSO

42       yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decora‐
43       tions(5)
44
45                                  2023-07-22           yambar-modules-clock(5)
Impressum