Add toTime helper

- Update documentation
- Add tests

Not sure if this is of interest, but I find this helper useful.