apache/spark — pull request #814 by giwa (2014-05-18 10:36:10+00:00)
Title: Consistency for function naming in Duration

toFormattedString should represent formatted millisecond like "10 ms" not simply give back "10"
toString should represent string of duration. It should simply give back string of millisecond.

Currently like this.
duration = Duration(10)
duration.toString()
>> "10 ms"
duration.toFormattedString()
>> "10"

Should be
duration = Duration(10)
duration.toString()
>> "10"
duration.toFormattedString()
>> "10 ms"

Please explain what does "formatted" mean? Why does it simply give millisecond with string format?