Sha256: 2da12542cb38b516ae721ce8f3f9ff5bcd035cba258eadb479e2a0d3c0bfb592
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 Bytes
Contents
# frozen_string_literal: true require "active_support" require "active_support/time" module FeCoreExt::CoreExt end module FeCoreExt::CoreExt::Time def floor(unit = :sec) case unit when :sec Time.zone.local(year, month, day, hour, min, sec) else self end end end module FeCoreExt::CoreExt::TimeClassMethods end class Time include FeCoreExt::CoreExt::Time extend FeCoreExt::CoreExt::TimeClassMethods end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fe_core_ext-0.30.0 | lib/fe_core_ext/core_ext/time.rb |
fe_core_ext-0.29.1 | lib/fe_core_ext/core_ext/time.rb |