@lukevancelave The rtc (Real Time Clock) demo is very good and you can modify it as you like or use it as an example for your unique project.
see here!
https://github.com/m5stack/M5StickCPlus2/blob/master/examples/Basic/rtc/rtc.ino