net.i2p.router.news

## Class RFC3339Date

- java.lang.Object
- - net.i2p.router.news.RFC3339Date

-     public abstract class RFC3339Date
      extends Object

  RFC 3339 date parsing utility for Atom feed compatibility.

  Provides parsing and formatting of dates according to RFC 3339 (ISO 8601) and RFC 4287 Atom specifications. Supports multiple date formats including timezone handling and millisecond precision.

  Adapted from RFC822Date with enhanced support for modern date formats and timezone specifications. Handles both numeric and named timezone offsets with proper validation.

  Thread-safe implementation with synchronized methods for concurrent access. Includes comprehensive format support for various date representations encountered in news feeds.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RFC3339Date()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static long` | `parse3339Date(String s)` Parse the date
    `static String` | `to3339Date(long t)` Format is "yyyy-MM-ddTHH:mm:ssZ"

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RFC3339Date

          public RFC3339Date()

  - ### Method Detail

    - #### parse3339Date

          public static long parse3339Date(String s)

      Parse the date
      Parameters:
        `s` - non-null
      Returns:
        -1 on failure

    - #### to3339Date

          public static String to3339Date(long t)

      Format is "yyyy-MM-ddTHH:mm:ssZ"