getAsDuration method

Duration getAsDuration (int index)

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

  • index an index of element to get. Returns Duration value ot the element or the current date if conversion is not supported.

See getAsDurationWithDefault