lighttroupe/luz-next

View on GitHub
engine/plugins/variable_inputs/seconds.luz.rb

Summary

Maintainability
A
0 mins
Test Coverage
class VariableInputSeconds < VariableInput
    title                "Seconds"
    description "The smooth progress of the seconds hand of an analog clock showing the current Real-World time."

    categories :special

    def value
        time = Time.now
        (time.sec + (time.usec / 1000000.0)) / 60.0
    end
end