Bug 1054178 - [Gaia][calendar] support 24 hour time format

we need a helper method so that we can call like: `timeFormat(now, 'current-time')` and/or `timeFormat(now, 'current-time12', 'current-time24')` instead of duplicating this logic everywhere.