List of usage examples for com.vaadin.client LocaleService isTwelveHourClock
public static boolean isTwelveHourClock(String locale) throws LocaleNotLoadedException
From source file:com.vaadin.client.DateTimeService.java
License:Apache License
/** * Returns whether the locale has twelve hour, or twenty four hour clock. * * @return {@code true} if the locale has twelve hour clock, {@code false} * for twenty four clock/*from ww w .j a v a 2s. c om*/ */ public boolean isTwelveHourClock() { try { return LocaleService.isTwelveHourClock(locale); } catch (final LocaleNotLoadedException e) { getLogger().log(Level.SEVERE, "Error in isTwelveHourClock", e); return false; } }