Languages

Menu
Sites
Language
Gear: Time format API?

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

View Selected Answer

Responses

1 Replies
Mark as answer

var timeFormat = tizen.time.getTimeFormat();

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