# Day/Date rotation

Hi everyone

I am working on a new face and decided to do rotating wheels for day/date

For the day I used this expression: ((((#DOW#+((#DH#+(#Dm#/60))/24))/7)*-360))

For the date rotation I used this expression: ((((#Dd#+((#DH#+(#Dm#/60))/24))/31)*-360)+11.61)

Thank you @Mellin for the expressions

The problem is the smooth rotation runs for 24h, so mid day the wheels are not centered in the window

I want the rotation to run say; from 10pm to 2am then the day/date wheels stop rotating and centre in the window the rest of the 24h

Any suggestions is appreciated

1 Like

Interesting problem â€¦

Not a full solution but maybe a start â€¦

Perhaps a test on the hour using a 24hr tag and if it is between 2am and 10pm then just use a simple date formula like

(((#Dd#/31)*360)+11.613)

else

use the complex, continuously varying one - although it would need to be adjusted for a full dayâ€™s rotation in 4 hours instead of 24.

1 Like

I think I have found a way but only with two date wheels â€¦

1st wheel opacity: \$#DH#>=2?100:0\$

Rotation: \$#DH#<22?(((#Dd#/31)-360)+11.613):((((#Dd#+6((#DH#-22+(#Dm#/60))/24))/31)*-360)+11.61)\$

2nd wheel opacity: \$#DH#<2?100:0\$

Rotation: ((((#Dd#-0.5+6*((#DH#+(#Dm#/60))/24))/31)*-360)+11.61)

I think that will workâ€¦

1 Like

Thank you very much @mikeoday for the efforts

I just tested it

The 1st wheel opacity is working fine between 02:00 and 00:00 but it is not showing the correct date; at 22:00 the date turns to the next date

The 2nd wheel opacity turns it on at 00:00 to 02:00 and it is showing the correct date with smooth rotation

If you have time I would appreciate a look at the test face I created

OZ

There is an error in the first expression - a paste/forum issue I think

The â€ś*â€ť symbol immediately before the -360 is missing

Should be:
" \$#DH#<=22?(((#Dd#/31)-360)+11.613):((((#Dd#+6((#DH#-22+(#Dm#/60))/24))/31)-360)+11.61)\$ "

Please let me know if that fixes the problem.

edit: Damn, still happening â€¦

Should be: \$ #DH# <= 22 ? ((( #Dd# / 31) * -360) + 11.613): etc.

edit: Try again

\$#DH#<=22?(((#Dd#/31)X-360)+11.613):((((#Dd#+6((#DH#-22+(#Dm#/60))/24))/31)X-360)+11.61)\$

replace the two Xâ€™s with *

What is it with the forum - why canâ€™t I paste the formula with " * " in it ?!!!

Itâ€™s working now, however once the clock is 23:00 to 23:59 the wheel returns to 1 then the second wheel kicks in (whic is working fine)

Iâ€™m guessing its related to â€ś#DH#<=22â€ť and â€ś#DH#-22â€ť partsâ€¦

Can you post the link to the watch again, it is not working.

Also, please check the formula again to make sure all the * symbols are there. There should be one after the 6. As in 6*(

You are right - should be < 22 not <= 22

Yep, itâ€™s working now after the last two fixesâ€¦

check it outâ€¦

1 Like

I am glad it is working now!

The link still does not work for me but that might be because Iâ€™m on my IPAD â€¦

edit: I managed to copy and tweak the link so I can now load your face - it is looking good!

Itâ€™s working fine now, I am trying to apply the same to week day wheels by replacing Dd with DOW

I will keep you posted

Thank you very much for your helpâ€¦

1 Like

You are most welcome!