Skip to content

Date & Time Module

Sam edited this page Aug 7, 2024 · 2 revisions

The datetime module displays simply displays the current date/time set on your system.

Using

Insert into the modules array.

Configuration

  • title -> (String) The module title.
  • format -> (String) The format used to display the module. See below for placeholders.
  • title_color -> (Optional/String) Override the title color to be used.
  • title_bold -> (Optional/Bool) Make the title bold.
  • title_italic -> (Optional/Bool) Make the title italic.
  • separator -> (Optional/Char) Override the separator to be used.
format placeholders;

The placeholders are simply strftime placeholders. If your not familiar with them, you can find a table here.

Default Configuration
[datetime]
title = "Date Time"
format = "%H:%M:%S on %e %B %G"

Example

modules = [
    "datetime"
]

[datetime]
title = "Date Time"
format = "%H:%M:%S on %e %B %G"