Implement duration operations.

Updates #10