On Sun, Mar 13, 2016 at 04:20:42PM +0300, Yuriy M. Kaminskiy wrote: > > On 03/13/16 13:31 , Sami Kerola wrote: > > POSIX.1-2008 marks asctime() and asctime_r() as obsolete, recommending the > > use of strftime(3) instead. > > stftime uses locale, asctime is not. And if you want *locale-specific* > time presentation, it is "%c" --- it can be very different from your "%a > %b...", e.g. compare with attached This is why I have asked for functions in lib/timeutils.c to make short, full or iso formats explicitly defined on one place to avoid creativity in utils code and such discussions. We need: - human readable times: * full (%c -- now asctime) * short ("%H:%M:%S, "%b%d/%H:%M", "%Y-%b%d") - ISO: * full * short Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html