[Remind-Fans] Bug in processing hebdates?
Dianne Skoll
dianne at skoll.ca
Sun Feb 14 22:53:25 EST 2021
On Sun, 14 Feb 2021 19:32:33 -0800
Isaac Good <isaacgood at gmail.com> wrote:
> I have no idea what's going on here other than remind seems to be
> skipping some hebrew dates.
Indeed.
> Is there a bug here?
Nope. If you look at the output of:
msg [hebmon('2000-02-15')]
you get:
Adar A
That's because 2000-02-15 corresponds to 9 Adar A 5760, which was a leap
year. As a result, the "Date H" message only appears for leap years.
If you want it for every year, you need to specify the month as "Adar"
and not "Adar A".
2002-02-01 corresponds to 25 Shvat 5760. And since Shvat is always present
in both leap years and non-leap years, there's no issue with years being
skipped.
Regards,
Dianne.
> __ remind -s36 <( printf '%s\n' "SET _bd_ '2000/02/15'" "REM
> [mon(_bd_)] [day(_bd_)] MSG Date E" "REM [hebdate(hebday(_bd_),
> hebmon(_bd_))] MSG Date H" ) 2020-01-01
> 2020/02/15 * * * * Date E
> 2021/02/15 * * * * Date E
> 2022/02/10 * * * * Date H
> 2022/02/15 * * * * Date E
>
> __ remind -s36 <( printf '%s\n' "SET _bd_ '2000/02/01'" "REM
> [mon(_bd_)] [day(_bd_)] MSG Date E" "REM [hebdate(hebday(_bd_),
> hebmon(_bd_))] MSG Date H" ) 2020-01-01
> 2020/02/01 * * * * Date E
> 2020/02/20 * * * * Date H
> 2021/02/01 * * * * Date E
> 2021/02/07 * * * * Date H
> 2022/01/27 * * * * Date H
> 2022/02/01 * * * * Date E
More information about the Remind-fans
mailing list