cor3ntin wrote:

`asctime` is deprecated. But `asctime_s` is not.
See https://en.cppreference.com/w/c/chrono/asctime

using `strftime` is going to be challenging because of locale (ie we would have 
to temporarily switch to a C locale - both because we want a locale independent 
behavior, and because for an arbitrary locale the buffer might need to be 
bigger than for the C locale.

(an alternative would be to use the C++ interface 
https://compiler-explorer.com/z/WEqTW341b )

Either way, we need to make sure sure the produced string are identical, I'm 
sure people rely on that.




https://github.com/llvm/llvm-project/pull/99075
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to