lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


As far as I see, neither, C99 nor C11 supports the `%s` format specifier for strtftime().
Also, note that You're introducing explicitly stated Undefined Behaviour:

7.23.3.5 The strftime function
6. If a conversion specifier is not one of the above, the behavior is undefined.

On Thu, Jul 28, 2016 at 3:08 PM, Marc Balmer <marc@msys.ch> wrote:
On OS X, strftime supports the %s format, resulting in the number of seconds
since the epoch.

I don't know if %s is in ISO C 99 or POSIX, but OS X certainly supports it.