use of org.apache.jena.sparql.util.DateTimeStruct in project jena by apache.
the class TestDateTimeParsing method testGDay_2.
@Test
public void testGDay_2() {
DateTimeStruct dt = DateTimeStruct.parseGDay("---31Z");
check(dt, null, null, null, "31", "Z");
}
use of org.apache.jena.sparql.util.DateTimeStruct in project jena by apache.
the class TestDateTimeParsing method testDT_11.
@Test
public void testDT_11() {
DateTimeStruct dt = DateTimeStruct.parseDateTime("2007-08-31T12:34:56Z");
check(dt, null, "2007", "08", "31", "12", "34", "56", "Z");
}
use of org.apache.jena.sparql.util.DateTimeStruct in project jena by apache.
the class TestDateTimeParsing method testGMonth_1.
@Test
public void testGMonth_1() {
DateTimeStruct dt = DateTimeStruct.parseGMonth("--10");
check(dt, null, null, "10", null, null);
}
use of org.apache.jena.sparql.util.DateTimeStruct in project jena by apache.
the class TestDateTimeParsing method testGMonthDay_3.
@Test
public void testGMonthDay_3() {
DateTimeStruct dt = DateTimeStruct.parseGMonthDay("--10-31-08:00");
check(dt, null, null, "10", "31", "-08:00");
}
use of org.apache.jena.sparql.util.DateTimeStruct in project jena by apache.
the class TestDateTimeParsing method dateTimeBad.
private static void dateTimeBad(String str) {
try {
DateTimeStruct dt = DateTimeStruct.parseDateTime(str);
fail("No exception; " + str);
} catch (org.apache.jena.sparql.util.DateTimeStruct.DateTimeParseException ex) {
}
}
Aggregations