Method: Config#get_milliseconds

Defined in:
lib/hocon/config.rb

#get_milliseconds(path) ⇒ Object

Deprecated.

As of release 1.1, replaced by #getDuration(String, TimeUnit)

Get value as a duration in milliseconds. If the value is already a number, then it’s left alone; if it’s a string, it’s parsed understanding units suffixes like “10m” or “5ns” as documented in the <a href=“github.com/typesafehub/config/blob/master/HOCON.md”>the spec</a>.



643
644
645
# File 'lib/hocon/config.rb', line 643

def get_milliseconds(path)
  raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `Config` must implement `get_milliseconds` (#{self.class})"
end