Provides consistent time formatting and alternative format on mouse hover-over.
{{time|17:30}}
gives 17:30{{time|17:30|21:00}}
gives 17:30–21:00{{time|5:30PM}}
gives 5:30PM{{time|5:30PM|9:00PM}}
gives 5:30PM–9PM{{time|5:30AM}}
gives 5:30AM{{time|5:30AM|9:00AM}}
gives 5:30AM–9AM{{time|5:30 pm}}
gives 5:30PM{{time|17h00}}
gives 17:00{{time|6PM}}
gives 6PM{{time|12:00|00:00}}
gives 12:00–00:00{{time|12:00PM|12:00AM}}
gives noon–midnight
Note
[edit]"Midnight" is not a valid input for the template. Use "12AM" or "00:00" instead. It will produce "midnight" as the output.