clock
Meta Data
| filepath_exists | True |
| path | clock |
| filepath | clock.js |
| clean_files | () |
-
VariableDeclaration
-
ClassDeclarationclass
SimTime
extends Noneclass comments:Sim Time provides an interface for hour, minute, second clock additions. let st = new SimTime(16, 30, 0) st.add(1) // seconds st.addHour(-1) st.add(100) //seconds st.array() [15, 31, 41]-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Sim Time provides an interface for hour, minute, second clock additions. let st = new SimTime(16, 30, 0) st.add(1) // seconds st.addHour(-1) st.add(100) //seconds st.array() [15, 31, 41]
ClassDeclarationclassHands
extends Noneclass comments:assign the time hour to the point hand in the form of rotation-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Because polypoint 0 degreee rotation points to the 3oclock, we want to move the minute hand back by 15 minutes. we add 45 here, because we want to -15 minutes, so we ensure we spin around the clock 60-15, to ensure /60 works without minus.
-