class Time
Public Class Methods
beats()
click to toggle source
# File lib/swatch.rb, line 30 def self.beats Time.now.beats end
internettime()
click to toggle source
# File lib/swatch.rb, line 45 def self.internettime swatchtime end
swatchtime()
click to toggle source
# File lib/swatch.rb, line 40 def self.swatchtime Time.now.swatchtime end
Public Instance Methods
beats()
click to toggle source
# File lib/swatch.rb, line 19 def beats t = gmtime seconds = t.hour * 3600 + t.min * 60 + t.sec seconds += 3600 # UTC to Biel Mean Time (seconds / 86.4) % 1000 end
swatchtime()
click to toggle source
# File lib/swatch.rb, line 35 def swatchtime format('@%06.2f', beats) end