Trade & Play Event, featuring Pokémon & Nintendo

me(time) { const hours = parseInt(time.substring(0, 2)); const minutes = time.substring(2); const meridiem = hours >= 12 ? 'PM' : 'AM'; const formattedHours = hours % 12 || 12; return `${formattedHours}:${minutes}${meridiem}`; } });