use of org.apache.xmlbeans.XmlDateTime in project arctic-sea by 52North.
the class SweCommonEncoderv101 method createDateTime.
private XmlDateTime createDateTime(DateTime sosDateTime) {
XmlDateTime xbDateTime = XmlDateTime.Factory.newInstance(getXmlOptions());
// encode the DateTime in UTC
GDateBuilder gdb = new GDateBuilder(sosDateTime.toDate());
gdb.normalize();
xbDateTime.setGDateValue(gdb.toGDate());
return xbDateTime;
}
Aggregations