Module i3status_rs::blocks::time

source ·
Expand description

The current time.

§Configuration

KeyValuesDefault
formatFormat string. See chrono docs for all options." $icon $timestamp.datetime() "
intervalUpdate interval in seconds10
timezoneA timezone specifier (e.g. “Europe/Lisbon”)Local timezone
PlaceholderValueTypeUnit
iconA static iconIcon-
timestampThe current timeDatetime-
ActionDefault button
next_timezoneLeft
prev_timezoneRight

§Example

[[block]]
block = "time"
interval = 60
[block.format]
full = " $icon $timestamp.datetime(f:'%a %Y-%m-%d %R %Z', l:fr_BE) "
short = " $icon $timestamp.datetime(f:%R) "

§Non Gregorian calendars

You can use calendars other than the Gregorian calendar by adding the calendar specifier in the locale string. When using this feature you can’t use chrono style format string, and you should use one of the options provided by the icu4x crate: short, medium, long, full.

** Only available using feature icu_calendar. **

§Example

[[block]]
block = "time"
interval = 60
format = "$timestamp.datetime(locale:'fa_IR-u-ca-persian', f:'full')"

§Icons Used

  • time

Structs§

Enums§

Functions§