Interface Rfc3339Formatter

    • Method Detail

      • formatUtc

        String formatUtc​(OffsetDateTime date)
        Format the Date as a UTC formatted date-time string
        Parameters:
        date - The date to format
        Returns:
        the formatted string
      • format

        String format​(Date date,
                      String timezone)
        Format a date in the given time-zone
        Parameters:
        date - The date to format
        timezone - The time-zone
        Returns:
        the formatted string
      • format

        String format​(Date date,
                      String timezone,
                      int fractionDigits)
        Format the date as a date-time String with specified resolution and time-zone offset, for example 1999-12-31T16:48:36[.123456789]-05:00
        Parameters:
        date - The date to format
        timezone - The time-zone
        fractionDigits - The number of fraction digits
        Returns:
        the formatted string
      • formatUtcMilli

        String formatUtcMilli​(OffsetDateTime date)
        Format the date as a date-time String with millisecond resolution, for example 1999-12-31T16:48:36.123Z
        Parameters:
        date - The date to format
        Returns:
        the formatted string
      • formatUtcMicro

        String formatUtcMicro​(OffsetDateTime date)
        Format the date as a date-time String with microsecond resolution, aka 1999-12-31T16:48:36.123456Z
        Parameters:
        date - The date to format
        Returns:
        the formatted string
      • formatUtcNano

        String formatUtcNano​(OffsetDateTime date)
        Format the date as a date-time String with nanosecond resolution, aka 1999-12-31T16:48:36.123456789Z
        Parameters:
        date - The date to format
        Returns:
        the formatted string
      • formatUtc

        String formatUtc​(OffsetDateTime date,
                         int fractionDigits)
        Format the date as a date-time String with specified resolution, aka 1999-12-31T16:48:36[.123456789]Z
        Parameters:
        date - The date to format
        fractionDigits - The number of fractional digits in the second
        Returns:
        the formatted string