Math for Math for moving stacked objects

I did try it but need to play with it

Re: SteelGlasses

Still tweaking the math on the Right Calendar

What are you trying to acheive?

Hi, trying to get the hands match the degrees for month, days, date. I want Jan, Sun, 1st at 0 degrees. I don’t know how many degrees separate Jan and Feb. Sun degrees to monday. Day 1 to day 2. Does this make sense?

Smooth or jump scrolling?

Hour hand as month (Jan - Dec), minute hand as weekday (Sun - Sat), and second hand as day (1-28/29/30/31) ?

I was thinking jump would be correct more. Ddin’t want to have user guessing. I thought the same for month, but found this equation: ((((#DMYR#1.2))-0.5)+266). Had to mess with the +266 to fit the index. Yes in your thought process. I have had a difficult time finding the string variable for Calendars. I know time has its string but Calendar is not clear. My biggest thing is I don’t know the exact degree spacing so that way I can adjust in Illustrator the index lines.

Month, Weekday:

$#DM#=1?Jan:$$#DM#=2?Feb:$$#DM#=3?Mar:$$#DM#=4?Apr:$$#DM#=5?May:$$#DM#=6?Jun:$$#DM#=7?Jul:$$#DM#=8?Aug:$$#DM#=9?Sep:$$#DM#=10?Oct:$$#DM#=11?Nov:$$#DM#=12?Dec:$

$#DOW#=0?Sun:$$#DOW#=1?Mon:$$#DOW#=2?Tue:$$#DOW#=3?Wed:$$#DOW#=4?Thu:$$#DOW#=5?Fri:$$#DOW#=6?Sat:$

Inspection enabled:

OK so on the DOW, it basically ask if it is Sun than goto 0:00? And same for the DM?

Do you know how to do 24hr countdown timer?

rotation:

DOW start with 0 (Sun), so maths is fairly simple. It is just DOW times the angle (per increment).

Both Month and Day start with 1, so need to be number-1 (to start with 0). Then same as for DOW, number times the angle (per increment).


24hr countdown:

Hours, Minutes, and Seconds?

Starting with:

(24-#DH#)

(60-#Dm#)

You might also need leading-zero logic, for presentation.

If I want the number to start at 12pm, is this correct:
(12-#DHZ#):(60-#DmZ#):(60-#DsZ#)

12:00pm in 24-hour time is 00:00 (or 1 minute after 23:59 aka 11:59pm) … or, do you mean noon?

Does your countdown need to be in UTC or local time?

Yes I meant noon, it can be in 1200 (military time). And it probably should be based on user’s time zone.

Is it a countdown of at or less than 24 hours, or is it also some days in the future?

it is a countdown from 12:00pm today to tomorrow 11:59:59 AM. I don’t want to show the watch just yet cause tweaking the look, but once you see it you will understand

If Hour <12 Then (12-Hour), (60-Minutes) Else (24-Hour), (60-Minutes)

$#DH#<=12?(12-#DH#):(24-#DH#)$ hours, (60-#Dm#) minutes.

$#Dd#=1||#Dd#=3||#Dd#=5||#Dd#=7||#Dd#=9||#Dd#=11||#Dd#=13||#Dd#=15||#Dd#=17||#Dd#=19||#Dd#=21||#Dd#=23||#Dd#=25||#Dd#=27||#Dd#=29||#Dd#=31?100:0$

Is this correct? I want it to turn on on those days 1st, 3rd, …

Yes, but that could be stated more simply:

If day is an Odd Number Then display Else don’t display

“odd number” >> Number / 2, and remainder is 1 >> (number mod 2) = 1

$(#Dd#%2)=1?100:0$

Or combined with previous:

$(#Dd#%2)=1&&#DH#<=12?(12-#DH#) hours, (60-#Dm#) minutes:$$(#Dd#%2)=0&&DH#>12?(24-#DH#) hours, (60-#Dm#) minutes:$

Here is the reason I was asking for 24hour countdown:

Your countdown seconds need to be:

$(60-#Ds#)<10?0(60-#Ds#):(60-#Ds#)$

$#DHZ#<12?(12-#DHZ#):(24-#DHZ#)$:(60-#DmZ#):#DsZ#

$#DHZ#<12?(12-#DHZ#):(24-#DHZ#)$:(60-#DmZ#):$(60-#Ds#)<10?0(60-#Ds#):(60-#Ds#)$

I don’t know my proper punctuation.