From 705313d58bdeb1b5e3effc48372de84b4a4ad436 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sun, 19 Jul 2020 01:42:17 +0300 Subject: [PATCH] i3status: add comments for day formatting, add ordinal date --- conf/i3status/config | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/conf/i3status/config b/conf/i3status/config index 7b3598bc..8bc6b0f5 100644 --- a/conf/i3status/config +++ b/conf/i3status/config @@ -90,13 +90,25 @@ tztime utc { format = "%Z: %Y-%m-%d %H:%M:%S%z" } +# Date format explanations +# %G = week based year +# %V = week number counted from first week with 4 days +# %u = week-day-number (1 = mon, 7 = sun) +# %a = week day abbreviation (e.g. ma for maanantai (FI)) +# %B = unabbreviated month name (e.g. heinäkuu (FI)) +# %Y = actual year +# %j = ordinal day of the year, from 000 to 366 (e.g. 201) +# %F = year-month-day e.g. 2020-07-19 +# %H = 24H hour +# %M = minute +# %S = seconds +# %z = timezone offset to UTC, e.g. +0300 + #tztime local { time { # Finnishish formatting with my adjustments #format = "%Y-W%V/%a %d. %Bta %Y/%H.%M.%S%z" - # %G = week based year - # %V = week number counted from first week with 4 days - format = "%G-W%V-%u (%a/%B) / %F %H.%M.%S%z" + format = "%G-W%V-%u %Y-%j / (%a/%B) / %F %H.%M.%S%z" } volume master {