Thread (11 messages) 11 messages, 3 authors, 2024-08-23

Re: [PATCH v2] ctime.3: Document how to check errors from mktime(3)

From: Paul Eggert <hidden>
Date: 2024-08-23 20:55:20

On 2024-08-23 13:43, Alejandro Colomar wrote:
strftime("%s") would be interesting, but it accepts a struct tm, not a
time_t
That's not a problem, since mktime effectively returns a struct tm as 
well as a time_t.

You should not use strftime with %s, though, since that might not work 
on some platforms during fall-back periods. You can use strftime with 
"%Y-%m-%d %H:%M:%S %z".
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help