Date:        Fri, 14 Jun 2024 00:31:31 +1200
    From:        Martin D Kealey <mar...@kurahaupo.gen.nz>
    Message-ID:  
<can_u6mvtlk+o50clvcbytmjwvgnaz21xmwe+qhak8494ocf...@mail.gmail.com>

  | I also note a minor bug/issue with printf in Bash 5.3-alpha: the builtin
  | printf treats TZ=CET-1CEST,M3.5,M10.5/3 as if it were oddly-named UTC.

That's user error, POSIX format requires 3 values after the M:

     Mm.n.d The d'th day (0  d  6) of week n of month m of the
            year (1  n  5, 1  m  12, where week 5 means ``the last
            d day in month m'' which may occur in either the fourth
            or the fifth week). Week 1 is the first week in which the
            d'th day occurs. Day zero is Sunday.

If you do:

TZ=CET-1CEST,M3.1.5,M10.1.5/3 date
Fri Jun 14 00:49:42 CEST 2024

(note I have no idea if the rule I use is factually correct, it is however
syntactically correct)

kre


Reply via email to