Hi all,
I've stumbled over this weird thing trying to retrieve the day of Easter
Sunday applying the easterday() function as shown in the help text.
However, it seems that scalar "d" is not a proper integer as trying to
restrict the sample to a single day fails with the error message "No
observations would be left!". Replacing "d" in the "smpl" command
by 5
works though. This is using latest git on Ubuntu 19.10.
<hansl>
clear
set verbose off
nulldata 200
setobs 7 2015-01-01 --time-series
series year, month, day
isoconv($obsdate, &year, &month, &day)
scalar e = easterday(2015)
scalar m = floor(e)
scalar d = 100*(e-m)
print e m d
smpl year == 2015 && month == m --restrict
printf "worked\n"
# fails as 'd' seems to be no proper integer value
smpl year == 2015 && month == m && day == d --restrict
</hansl>
Best,
Artur