The man page for ctime says that POSIX.1-2008 marks this function (among some other ones, too) as obsolete and advises that strftime should be used instead. I’m wondering how the format string for strftime would look in order to get the same output as ctime.
The only thing I’ve got so far is %a %b %_2d %T %Y%n, but %_2d is a Glibc extension, and I’d like that to work on Windows as well.
From this reference: