getClock method

int getClock()

Returns the default clock from the locale is returned instead. "12" or "24" depending on whether this formatter uses the 12-hour or 24-hour clock

Implementation

int getClock() {
  String result = '';
  final String formatOptions = toJsonString();
  final String jscode1 = 'new DateFmt($formatOptions).getClock()';
  result = ILibJS.instance.evaluate(jscode1).stringResult;
  return int.parse(result);
}