Is there a portable standard-compliant way to create an std::chrono::time_point for 1 Jan 1970 00:00:00? This has to be thread-safe. Therefore, the solution should avoid functions like std::gmtime()
and std::localtime()
which do not have thread-safety guarantees.
This is not a duplicate of Convert std::chrono::time_point to unix timestamp since I'm asking for a portable solution that is thread-safe. Neither does the question there ask for that, nor do the answers provide this guarantee.