Package net.i2p.util

Class RFC822Date


  • public abstract class RFC822Date
    extends Object
    Moved from NewsFetcher
    Since:
    0.8.5; moved from net.i2p.router.util in 0.9.34
    • Constructor Detail

      • RFC822Date

        public RFC822Date()
    • Method Detail

      • parse822Date

        public static long parse822Date​(String s)
        new Date(String foo) is deprecated, so let's do this the hard way
        Parameters:
        s - non-null
        Returns:
        -1 on failure
      • to822Date

        public static String to822Date​(long t)
        Format is "d MMM yyyy HH:mm:ss z"
        Since:
        0.8.2
      • main

        public static void main​(String[] args)