strftime.c: implement %N format specifier with extra semantics