use of org.apache.jena.sparql.util.DateTimeStruct in project jena by apache.
the class TestDateTimeParsing method testGYear_2.
@Test
public void testGYear_2() {
DateTimeStruct dt = DateTimeStruct.parseGYear("2007Z");
check(dt, null, "2007", null, null, "Z");
}
use of org.apache.jena.sparql.util.DateTimeStruct in project jena by apache.
the class TestDateTimeParsing method testGYearMonth_1.
@Test
public void testGYearMonth_1() {
DateTimeStruct dt = DateTimeStruct.parseGYearMonth("2007-10");
check(dt, null, "2007", "10", null, null);
}
use of org.apache.jena.sparql.util.DateTimeStruct in project jena by apache.
the class TestDateTimeParsing method testGMonth_2.
@Test
public void testGMonth_2() {
DateTimeStruct dt = DateTimeStruct.parseGMonth("--10Z");
check(dt, null, null, "10", null, "Z");
}
use of org.apache.jena.sparql.util.DateTimeStruct in project jena by apache.
the class TestDateTimeParsing method testGYearMonth_2.
@Test
public void testGYearMonth_2() {
DateTimeStruct dt = DateTimeStruct.parseGYearMonth("2007-10Z");
check(dt, null, "2007", "10", null, "Z");
}
use of org.apache.jena.sparql.util.DateTimeStruct in project jena by apache.
the class TestDateTimeParsing method testDT_12.
@Test
public void testDT_12() {
DateTimeStruct dt = DateTimeStruct.parseDateTime("-2007-08-31T12:34:56.003-05:00");
check(dt, "-", "2007", "08", "31", "12", "34", "56.003", "-05:00");
}
Aggregations