private XMLGregorianCalendar createCalendar ( Long timestamp ) throws Exception { DatatypeFactory df = DatatypeFactory . newInstance ( ) ; GregorianCalendar cal = new GregorianCalendar ( ) ; cal . setTimeInMillis ( timestamp != null ? timestamp . longValue ( ) : System . currentTimeMillis ( ) ) ; return df . newXMLGregorianCalendar ( cal ) ; }
Erzeugt ein Calendar - Objekt .