TODO Rethink: Shouldn’t this return numbers instead of reformatted strings?
TODO:
* AM/PM calculation * proper documentation (comments)
blatantly copied from strong_parameters’s ActionController::Parameters :)