@cattledog There are several with the same name but different syntax.
True that. This is the one I found that seems like a match, at least the code will compile where the library I had installed did not.
The OP’s code compiles. And as far as I can tell, functions correctly.
To get the day of week by algorithm from the TimeLib takes a few steps it seems.
I’ve just alway set the day myself. I use Sunday == 1, so.
HTH
a7