Using network capable arduino to negate an RTC?

Being that my project is connected to my router thus essentially connecting it to the internet, Is it possible to have the arduino pull the time and date and set itself every restart / being able to schedule timed cycles for devices based on what cycles you want each device to have.

Example, Arduino gets shut off for 2 hours due to power outage, arduino regains power, starts, pulls time and date, realizes that device 1 is supposed to be running between 8 am and 10 pm, notices its between the hours and turns that device on.

I understand that this is un-necessary due to RTC modules, but regardless, is it possible and could anyone rough out a sketch in regards to that?

Just a nerdy thought!


Take a look at the Time Library example TimeNTP which is setting and syncing the time with a time server.