I was looking into using the real-time clock in my C-only project, but I noticed there is no way to get the current device time in the C API. Unlike many of the Lua exclusive SDK functions, there is no way to implement
playdate.getTime() myself. I know you can call Lua functions from C, but it seems very complicated for something that should be easy to access. It would be very useful to have this function available to C projects!
Edit: I realized that
playdate->system->getSecondsSinceEpoch() is based on the device clock, which would allow me to convert it to the current date and time. I am still figuring out how to do that, but it looks like it is actually possible to do it purely in C.