I need 120 seconds on the second hand

This is an exercise in “Why not?”

I want the second hand to count off 120 seconds per revolution of 360º.

So far I can get (#DWFS#/2) to tick off 180º with the aesthetic I’m aiming for but missing how I can get it to go 120 seconds?

It’s very easy! (#DWFS#*2) give you 120 seconds in 360°.

1 Like

I need to described my intent a bit clear.

It takes 120 seconds to complete the 360º revolution, but still only has 60 ticks. I need 120 ticks to take place.

edit: Sorry, im wrong. I tested it an it goes only 180°. I will answer later the right solution.

2 Likes

Hi All,

An expression is needed to solve this problem, because the #DWFS# is not enough.
#DWFS# will give you the rotation for the seconds. This is between 0 and 360 degrees. If you divide it, or multiply, you will only modify this calculated number.
You have to check if it is an even or an odd minute, so you can use #DWFS#/2 (0-180), and #DWFS#/2+180 (180-360).
Like this:
($#Dm#%2==0?#DWFS#/2:#DWFS#/2+180$)

3 Likes

($#Dm#%2==0?#DWFS#/2:#DWFS#/2+180$) works nice. Thx Kisata.

2 Likes

Nice, good ole modulo to the rescue! Thanks for the assist guys.