[PATCH 08/15] time: Add timegm/timelocal basic tests
Adhemerval Zanella
adhemerval.zanella@linaro.org
Tue Mar 23 15:53:12 GMT 2021
On 23/03/2021 11:28, Andreas Schwab wrote:
> On Mär 23 2021, Adhemerval Zanella via Libc-alpha wrote:
>
>> + /* timelocal is a alias to timegm with the only difference it takes local
>> + timezone into account, while timegm takes the input value to be UTC. */
>
> That doesn't make sense. How can they be aliases if they differ?
Indeed, I got confused there. A better comment would be:
| /* timelocal is an alias to mktime and behaves like timegm with the
| difference that it takes timezone into account. */
More information about the Libc-alpha
mailing list