User wants to get the Time Format from the Set Preferences page using SuiteScript 2.X
require(['N/runtime'],
function(runtime) {
var timeFormatNetSuite = runtime.getCurrentUser().getPreference({
name : 'TIMEFORMAT'
});
console.log('Time Format = '+timeFormatNetSuite);
});
return: "H:mm"