import org.joda.time.{MutableDateTime, DateMidnight}
import java.util.{Date, Calendar}
-import java.text.DateFormat
+import org.joda.time.format.ISODateTimeFormat
/**
- * Date calculator.
- *
- * Utility class for date manipulations. Not that this is mutable.
+ * Mutable date calculator.
*
* @author Christos KK Loverdos <loverdos@gmail.com>
*/
dateTime.formatted(fmt)
}
+ def toISOString: String = {
+ ISODateTimeFormat.dateTime().print(dateTime);
+ }
+
override def toString = {
dateTime.toString("yyyy-MM-dd HH:mm:ss.SSS")
}