Creates a Duration instance from the given value in milliseconds.
Creates a Duration instance from the given value in seconds.