示例#1
0
 @Test
 public void supported_iso_datetime_formats() throws Exception {
   assertNotNull(DateTimeHelper.parseIsoDateTime("2016-10-05T10:00:00Z"));
   assertNotNull(DateTimeHelper.parseIsoDateTime("2016-10-05T10:00:00+01:00"));
   assertNotNull(DateTimeHelper.parseIsoDateTime("2016-10-05T10:00:00+01:30"));
   assertNotNull(DateTimeHelper.parseIsoDateTime("2016-10-05T10:00:00.000+01:30"));
 }
示例#2
0
 @Test
 public void empty_iso_datetime_formats() throws Exception {
   assertNull(DateTimeHelper.parseIsoDateTime(""));
   assertNull(DateTimeHelper.parseIsoDateTime(null));
 }