I want to extract date and time from an Epoch value and convert as per User's Locale Settings . There is already an existing solution using Windows API https://www.codeproject.com/Articles/12568/Format-Date-and-Time-As-Per-User-s-Locale-Settings
I want same thing to be platform independent. (Mac / Windows / Linux) How can I achieve this? Are there any C/C++ libraries to do the same? I am using C++14.
As pointed out by @IgorTandetnik in the comments, here is the sample code to do the following: