Package: coreutils Version: 8.30-3
When date with the --date='Second xxxxxxxx' argument is invoked it returns the first occurrence of the day + 1 second. This is different from the First and Third logic shown in the following example. $ date Wed 1 Jul 13:23:09 AEST 2020 $ date --date='First Monday' Mon 6 Jul 00:00:00 AEST 2020 $ date --date='Second Monday' Mon 6 Jul 00:00:01 AEST 2020 $ date --date='Third Monday' Mon 20 Jul 00:00:00 AEST 2020 I'd suggest the output should be Mon 13 Jul in this example. $ uname -a 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux