Package net.i2p.util
Class RFC822Date
- java.lang.Object
-
- net.i2p.util.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 Summary
Constructors Constructor Description RFC822Date()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
static long
parse822Date(String s)
new Date(String foo) is deprecated, so let's do this the hard waystatic String
to822Date(long t)
Format is "d MMM yyyy HH:mm:ss z"
-
-
-
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)
-
-