Code: Select all
function PT_time(s_l,m_l,h_l,s_z,m_z,h_z)
if user_prop_get(prop_time) == "Local" then
h = var_format(h_l, 0)
m = var_format(m_l - (h * 60), 0)
s = var_format(s_l - ((h * 60 * 60)+(m*60)), 0)
h = h + 2
else
s = s_z
m = m_z
h = h_z
end
rotate(img_sec_hand, s * 6)
rotate(img_small_hand, h * 30 + m * 6 / 12)
rotate(img_big_hand, m * 6)
end