Try to implement basic functions of .NET TimeSpan in Java.