Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/doing/numeric_chronify.rb

Overview

Number helpers

Instance Method Summary collapse

Instance Method Details

#format_time(human: false) ⇒ Object

Format human readable time from seconds

Parameters:

  • seconds (Integer)

    Seconds

#time_string(format: :dhm) ⇒ Object

Format seconds as natural language time string

Parameters:

  • format (Symbol) (defaults to: :dhm)

    The format to output (:dhm, :hm, :m, :clock, :natural)