Module: Doing::ChronifyNumeric

Included in:
Numeric
Defined in:
lib/doing/chronify/numeric.rb

Overview

Number helpers

Instance Method Summary collapse

Instance Method Details

#format_time(human: false) ⇒ Object

Format human readable time from seconds

Parameters:

  • human (Boolean) (defaults to: false)

    if True, don't convert hours into days

#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)