Displays the current date and time. Clicking on the widget opens a popup with the time and a calendar. ![Screenshot of clock widget with popup open](https://user-images.githubusercontent.com/5057870/184540521-2278bdec-9742-46f0-9ac2-58a7b6f6ea1d.png) ## Configuration > Type: `clock` | Name | Type | Default | Description | |----------|----------|------------------|------------------------------------------------------------------------------------------------------------------------------------------| | `format` | `string` | `%d/%m/%Y %H:%M` | Date/time format string. Detail on available tokens can be found here: |
JSON ```json { "end": [ { "type": "clock", "format": "%d/%m/%Y %H:%M" } ] } ```
TOML ```toml [[end]] type = "clock" format = "%d/%m/%Y %H:%M" ```
YAML ```yaml end: - type: "clock" format: "%d/%m/%Y %H:%M" ```
Corn ```corn { end = [ { type = "clock" format = "%d/%m/%Y %H:%M" } ] } ```
## Styling | Selector | Description | |--------------------------------|------------------------------------------------------------------------------------| | `.clock` | Clock widget button | | `.popup-clock` | Clock popup box | | `.popup-clock .calendar-clock` | Clock inside the popup | | `.popup-clock .calendar` | Calendar widget inside the popup. GTK provides some OOTB styling options for this. | For more information on styling, please see the [styling guide](styling-guide).