getAsDuration method

Duration getAsDuration (String key)

Converts map element into a Duration or returns the current date if conversion is not possible.

  • key a key of element to get. Returns Duration value of the element or the current date if conversion is not supported.

See getAsDurationWithDefault