@dharvey24
Please take a look at the little library I wrote to perform repeating daily tasks, non-blocking.
If you don't like the overhead of the library (it has a small footprint) you could alternatively lift some of the code from the methods I wrote:
I've been using it for several weeks on a particle Photon... seems to work nicely. Untested on Electron, FYI.