Is there a way to find out the system time format? (If it's 24hour or 12 hour)

Thanks