Implement time operations.

Updates #10