Use TimeSpans in ruby