Device App APIhmSetting OS ModulegetTimeFormatVersion: v1.0On this pagehmSetting.getTimeFormat()Returns the current system-set time system. Type () => result Parameters result: number ValueFormat012-hour system124-hour system Code example const timeFormat = hmSetting.getTimeFormat()