19 package org.turro.elephant.calendar;
21 import java.text.DateFormat;
22 import java.text.ParseException;
23 import java.text.SimpleDateFormat;
24 import java.util.Date;
25 import java.util.logging.Level;
26 import java.util.logging.Logger;
27 import org.turro.elephant.context.ElephantContext;
35 private static ThreadLocal<DateFormat> dateFormat =
new ThreadLocal<DateFormat>() {
37 protected DateFormat initialValue() {
38 return new SimpleDateFormat(
"yyyy-MM-dd'T'HH:mm:ss");
43 return dateFormat.get().format(date);
48 return dateFormat.get().parse(date);
49 }
catch (ParseException ex) {
static String logMsg(String msg)