com.agimatec.sql.SQLDateFormats Maven / Gradle / Ivy
package com.agimatec.sql;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
final class SQLDateFormats {
/**
* NOTE: DateFormat.format()
is not tread safe!
*/
public final DateFormat DateFormYYYYMMDD;
// timestamp formats
public final DateFormat TimestampFormYYYYMMDDHHmmss;
public final DateFormat TimeFormHHMMSS;
{
DateFormYYYYMMDD = new SimpleDateFormat("yyyy-MM-dd");
DateFormYYYYMMDD.setLenient(false);
TimestampFormYYYYMMDDHHmmss = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
TimestampFormYYYYMMDDHHmmss.setLenient(false);
TimeFormHHMMSS = new SimpleDateFormat("HH:mm:ss");
TimeFormHHMMSS.setLenient(false);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy