I wants to do in Arduino countdown that shows how many days, hours and minutes remaining to Friday 12:00.
In my program I used a function in php
strtotime('next friday') which thus could calculate differential timestamp and show how much time is left until Friday 12:00.
Is there a function
strtotime('next friday') in Arduino?
I have RTC which gives me just the current date and time, but does not show the current day of the week.
EDIT: I have a solution
We have day of week. We multiplied by 86400.
We have an hour. We multiply by 3600.
We have a minute. We multiplied by 60.
Subtract this from 604800.
nextFriday = 604800-((dayofweek * 86400)+(now.hour()*3600)+(now.minute()*60)+now.second());
Important, Friday is the number of the week "0". Friday = 0; Saturday = 1; etc...