语言

Menu
Sites
Language
Gear: Time format API?

Any api to know if the user is using 24 hours or 12hours format for Gear 2?

查看选择的答案

响应

1 回复
Mark as answer

var timeFormat = tizen.time.getTimeFormat();

    if(timeFormat == "h:m:s ap"){
        //12 hours format
    }else{
        //24 hours format
    }