Package com.adobe.epubcheck.util
Class DateParserTest
- java.lang.Object
-
- com.adobe.epubcheck.util.DateParserTest
-
public class DateParserTest extends java.lang.ObjectTest for the DateParser class.
-
-
Constructor Summary
Constructors Constructor Description DateParserTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)voidtestisISO8601Date()Test the ISO8601 date.
-
-
-
Method Detail
-
testisISO8601Date
public void testisISO8601Date() throws java.lang.ExceptionTest the ISO8601 date. Date grammar: Year: YYYY (eg 1997) Year and month: YYYY-MM (eg 1997-07) Complete date: YYYY-MM-DD (eg 1997-07-16) Complete date plus hours and minutes: YYYY-MM-DDThh:mmTZD (eg 1997-07-16T19:20+01:00) Complete date plus hours, minutes and seconds: YYYY-MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00) Complete date plus hours, minutes, seconds and a decimal fraction of a second YYYY-MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00) where: YYYY = four-digit year MM = two-digit month (01=January, etc.) DD = two-digit day of month (01 through 31) hh = two digits of hour (00 through 23) (am/pm NOT allowed) mm = two digits of minute (00 through 59) ss = two digits of second (00 through 59) s = one or more digits representing a decimal fraction of a second TZD = time zone designator (Z or +hh:mm or -hh:mm)- Throws:
java.lang.Exception
-
main
public static void main(java.lang.String[] args)
-
-