What library to setup the clock time on spark core?

inside the spark core , I want to control a pin at the certain clock time, say let it be on at 19:00 am and let it be off at 22:00am, what library can I use to program this clock time, how could I sync the clock time with the server time , and at last make the spark core to check the schedule and make it run, and

This might be useful: http://docs.particle.io/photon/firmware/#libraries-time

Depending on your needs, this is a really nice library, which includes schedules and whatnot: TimeAlarms scheduler

1 Like