Time intervals inspired in Scala duration object and Ruby active support