#include <time.h>
#include <limits.h>
#include "libc.h"
+#include "time_impl.h"
const char *__nl_langinfo_l(nl_item, locale_t);
fmt = "%m/%d/%y";
goto recu_strftime;
case 'e':
- val = tm->tm_mday;
- goto number;
+ *l = snprintf(*s, sizeof *s, "%2d", tm->tm_mday);
+ return *s;
case 'F':
fmt = "%Y-%m-%d";
goto recu_strftime;
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;