Am 21.09.2021 16:13 schrieb Riccardo (Jack) Lucchetti:
I was playing with the nice COVID international data set available
at
https://github.com/owid/covid-19-data/tree/master/public/data
The csv file contains a "date" column, that gretl reads as a
string-valued series. In order to turn it into proper dates, I ended
up writing this little function that turns a string valued series
holding dates into a numeric string holding the epoch day. The
requisite is that the string is organised as year-month-day, with an
arbitrary delimiter that must be passed as the optional second
parameter to the function (default: dash).
Hi Jack,
I haven't read in detail your post. But did you have a look at my
calendar_utils package?
http://ricardo.ecn.wfu.edu/gretl/cgi-bin/current_fnfiles/calendar_utils.gfn
Maybe the final code of this discussion can be used to extend the
package's functionalities.
Best,
Artur