Module: Doing::ChronifyArray

Included in:
Array
Defined in:
lib/doing/chronify/array.rb

Overview

Chronify array helpers

Instance Method Summary collapse

Instance Method Details

#time_string(format: :dhm) ⇒ String

Format [d, h, m] as string

Parameters:

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

    The format, :dhm, :hm, :m, :clock, :natural

Returns:

  • (String)

    formatted string

Raises:

  • (InvalidArgument)

#to_abbr(years: false, separator: '') ⇒ Object

#to_naturalObject

#to_yearsObject

Convert [d, h, m] to [y, d, h, m]