Class KiwiDateTimeConverters


  • public class KiwiDateTimeConverters
    extends Object
    A collection of small utility methods to convert between legacy Date and the Java 8 date/time API classes.

    Mainly, these utilities save you some typing and having to remember the chains of method calls you need to make when doing these conversions.

    All methods throw IllegalArgumentException if null values are passed into them.

    Implementation Note:
    Date, according to its JavaDoc, is "intended to reflect coordinated universal time (UTC)" though "it may not do so exactly". The utilities in this class convert arguments to to UTC before converting to Date in order to reflect that intention.