Package nl.vpro.i18n

Class Dutch


  • public class Dutch
    extends Object
    Some utility for working in the Netherlands
    Since:
    2.8
    Author:
    Michiel Meeuwissen
    • Field Detail

      • ZONE_ID

        public static final ZoneId ZONE_ID
        The ZoneId in the Netherlands
    • Method Detail

      • formatSmartly

        public static String formatSmartly​(Temporal instant)
        Formats a date time smartly, I.e. it will use shorter representation if this temporal is closer to Instant.now().
        • If it's closer than 12 hour, then only a time will be displayed,
        • If it's closer than half a year, then a date and a time will be displayed (but without an year)
        • Otherwise a full date time string will be returned.