언어 설정

Menu
Sites
Language
Gear: Time format API?

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

답변 바로가기

Responses

1 댓글
Mark as answer

var timeFormat = tizen.time.getTimeFormat();

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