On Thu, 30 Sep 2021, Sven Schreiber wrote:
Am 30.09.2021 um 16:39 schrieb Riccardo (Jack) Lucchetti:
> On Thu, 30 Sep 2021, Sven Schreiber wrote:
>
>> Then, I'm observing that the result for date_to_iso8601("1984",
"%Y")
>> is: 19831231. Is this a bug? I would have expected 19840101.
>
> Indeed, this looks like a strptime bug. For example:
So you mean gretl's strptime, or some other underlying library's strptime?
I mean gretl's implementation. Although this is weird, since our own
strpitime is basically just a wrapper around the corresponding C function.
If you want to take a look, the function you want is at line 8510 of
lib/src/geneval.c.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------