Sha256: 9ff30aad023a18db04e1fddc065ca95db07b215cf49543934988383b7b8c0841
Contents?: true
Size: 375 Bytes
Versions: 4
Compression:
Stored size: 375 Bytes
Contents
class Time ## # Fuzzy-formats the time. If the date is yesterday, today or tomorrow, a # simpler date will be given. # # @return [String] # # @example Today. # Time.now.fuzzy # => "Today at 19:05" # # @example Some time ago. # 1.week.ago.fuzzy # => "Wednesday 29th July at 19:05" # def fuzzy "#{to_date.fuzzy} #{formatted(:time)}" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
antw-kin-0.3.2 | lib/kin/core_ext/time.rb |
antw-kin-0.3.3 | lib/kin/core_ext/time.rb |
antw-kin-0.4.0 | lib/kin/core_ext/time.rb |
antw-kin-0.4.1 | lib/kin/core_ext/time.rb |