toDuration

inline fun String.toDuration(): Duration

Converts this String to a duration with the syntax [number][ms|s|m|h].