Improved Duration output operator.

1) handle negative durations.
2) try to find a whole number to print out.

From: Jiang Yan Xu <yan@jxu.me>
Review: https://reviews.apache.org/r/11331