Thread with 2 posts
jump to expanded postinteresting technical puzzle, perhaps an interview question: how would you convert a UNIX timestamp to a calendar date (YYYY-MM-DD)? with minimal research!
well, I now have my own answer to this :3 https://github.com/hikari-no-yume/touchHLE/commit/c94a8311fa8140068b7d187c34dfa3110955d31b
it's surely not the most efficient way to do it, but it should be decently efficient at least, and I think it's pretty easy to understand! also I get great satisfaction over the use of const stuff here (like C++ constexpr)