this is a nonstandard extension but will be required in the next
version of POSIX, and it's widely used/useful in shell scripts
utilizing the date utility.
#include <time.h>
#include <limits.h>
#include "libc.h"
+#include "time_impl.h"
const char *__nl_langinfo_l(nl_item, locale_t);
case 'R':
fmt = "%H:%M";
goto recu_strftime;
+ case 's':
+ val = __tm_to_secs(tm) + tm->__tm_gmtoff;
+ goto number;
case 'S':
val = tm->tm_sec;
goto number;