Write a function format_time that takes a datetime object and formats its time component in a 24-hour format and a 12-hour format. The function doesn't return anything, instead, it should print the resulting strings, first the one with a 24-hour clock and then a 12-hour one. See the provided examples for the details of the format.
Note, however, that you do NOT need to call the function or process the input.