|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsl.ISO8601
This class contains a set of static methods that allow to convert to/from the Date Time format specified by ISO8601 and adopted by FIPA.
| Constructor Summary | |
ISO8601()
|
|
| Method Summary | |
static void |
main(java.lang.String[] argv)
The main is here only for debugging. |
static java.util.Date |
toDate(java.lang.String dateTimeToken)
This method converts a String, that represents a Date Time Token in IS8601 format, to a java.util.Date object. |
static java.lang.String |
toRelativeTimeString(long millisec)
this method converts into a string in ISO8601 format representing relative time from the current time |
static java.lang.String |
toString(java.util.Date d)
This method converts a java.util.Date into a String
in ISO8601 format. |
private static java.lang.String |
zeroPaddingNumber(long value,
int digits)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ISO8601()
| Method Detail |
public static java.util.Date toDate(java.lang.String dateTimeToken)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String toString(java.util.Date d)
java.util.Date into a String
in ISO8601 format.
public static java.lang.String toRelativeTimeString(long millisec)
millisec - is the number of milliseconds from now
private static java.lang.String zeroPaddingNumber(long value,
int digits)
public static void main(java.lang.String[] argv)
java jade.lang.acl.ISO8601
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||