Cygwin strptime() is missing "%s" which strftime() has

Lavrentiev, Anton (NIH/NLM/NCBI) [C] lavr@ncbi.nlm.nih.gov
Mon Jul 24 19:51:00 GMT 2017


> Demand.  I patches strftime to add %s because Coreutils wanted it.  But
> coreutils doesn't use strptime, so I had no reason to add it.

Well, I was bringing up a point of API inconsistency, hoping that it'd serve as an
implicit request for an improvement so that strptime() gets its "%s"...

Maybe coreutils did not need "%s" for strptime, but dateutils certainly do, as:

> date +"%s" | strptime "%s"

does not work on Cygwin.  That looks odd.

Anton Lavrentiev
Contractor NIH/NLM/NCBI


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list