Sha256: d7660eb5320830ba37593e5697183ac74a731f8dbfea85b654eedeb32e22ab62
Contents?: true
Size: 134 Bytes
Versions: 2
Compression:
Stored size: 134 Bytes
Contents
module Downsampler module TimeExt def floor(seconds = 60) Time.at((self.to_f / seconds).floor * seconds) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
downsampler-0.2.0 | lib/downsampler/time_extensions.rb |
downsampler-0.1.0 | lib/downsampler/time_extensions.rb |