Sha256: 37a117e17ca47ffa171cfe1f274180023c41420f215e47507e84c9efe79b68ed
Contents?: true
Size: 328 Bytes
Versions: 6
Compression:
Stored size: 328 Bytes
Contents
module StockMarketDays module UtilityMethods def time_strip_date(time) time.to_r / 86400 % 1 end def time_strip_time_zone(time) Time.parse(time.strftime('%a, %d %b %Y %H:%M:%S')) end def compare_time(time1, time2) (time1.to_r / 86400) % 1 <=> (time2.to_r / 86400) % 1 end end end
Version data entries
6 entries across 6 versions & 1 rubygems