HH: MM с Am Pm jQuery
function CurrentTime()
{
const time = new Date();
return time.toLocaleString('en-US', {
timeZone: 'America/New_York',
hour: 'numeric',
minute: 'numeric',
hour12: true
})
}
Alert Alligator