Package nl.vpro.i18n
Class Dutch
- java.lang.Object
-
- nl.vpro.i18n.Dutch
-
public class Dutch extends Object
Some utility for working in the Netherlands- Since:
- 2.8
- Author:
- Michiel Meeuwissen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatSmartly(Clock clock, Temporal instant)
LikeformatSmartly(Temporal)
, but with the option to specify theClock
, useful for testing.static String
formatSmartly(Temporal instant)
Formats a date time smartly, I.e.static String
formatSmartly(Temporal now, Temporal instant)
LikeformatSmartly(Temporal)
, but with the option to specify 'now'.
-
-
-
Method Detail
-
formatSmartly
public static String formatSmartly(Clock clock, Temporal instant)
LikeformatSmartly(Temporal)
, but with the option to specify theClock
, useful for testing.
-
formatSmartly
public static String formatSmartly(Temporal now, Temporal instant)
LikeformatSmartly(Temporal)
, but with the option to specify 'now'. Mainly useful for testing.
-
formatSmartly
public static String formatSmartly(Temporal instant)
Formats a date time smartly, I.e. it will use shorter representation if this temporal is closer toInstant.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.
-
-