Rotate motor on morning, and rotate it back on evening without rtc.

Hi! I have UNO.
I`m simply wanna rotate to one side my motor(28BYJ-48) on morning 6.00.
And rotate it back on evening 18:00.
Every day!

I have 1 UNOs, 2 motors. Waiting for delivering them for 3 monts :frowning:
Dont want to order RTC module. So long.

  1. How can i write my code, like that?

loop()

if time == 6:00 am then rotate 180 //morning
sleep until evening

if time == 18:00 pm then rotate -180 //evening
sleep until morning

end

  1. That methods and libraries do i need?
  2. As it possible?

Any ideas?

Use the Time library. An Arduino without a crystal (i.e. a resonator), could gain or lose a few minutes every day.