com.loocme.sys.constance.DateFormatConst Maven / Gradle / Ivy
package com.loocme.sys.constance;
/**
* 日期格式常量
*
* @author liuchi
*
*/
public class DateFormatConst
{
public static final String Y = "yyyy";
public static final String YM = "yyyyMM";
public static final String YM_ = "yyyy-MM";
public static final String YMD = "yyyyMMdd";
public static final String YMD_ = "yyyy-MM-dd";
public static final String YMDH = "yyyyMMddHH";
public static final String YMDH0 = "yyyyMMdd HH";
public static final String YMDH_ = "yyyy-MM-dd HH";
public static final String YMDHM = "yyyyMMddHHmm";
public static final String YMDHM0 = "yyyyMMdd HHmm";
public static final String YMDHM_ = "yyyy-MM-dd HH:mm";
public static final String YMDHMS = "yyyyMMddHHmmss";
public static final String YMDHMS0 = "yyyyMMdd HHmmss";
public static final String YMDHMS_ = "yyyy-MM-dd HH:mm:ss";
public static final String YMDHMSMS = "yyyyMMddHHmmssms";
public static final String YMDHMSMS0 = "yyyyMMdd HHmmss ms";
public static final String YMDHMSMS_ = "yyyy-MM-dd HH:mm:ss ms";
public static final String HM = "HHmm";
public static final String HM_ = "HH:mm";
public static final String HMS = "HHmmss";
public static final String HMS_ = "HH:mm:ss";
public static final String SECOND = "SECOND";
public static final String MILL_SECOND = "MILL_SECOND";
public static final String PATTERN_YMD = "^(19[789]|20[0123])[0-9](0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])$";
public static final String PATTERN_YMDH = "^(19[789]|20[0123])[0-9](0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])([01][0-9]|2[0-4])$";
public static final String PATTERN_YMDHM = "^(19[789]|20[0123])[0-9](0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])([01][0-9]|2[0-4])([0-5][0-9])$";
public static final String PATTERN_YMDHMS = "^(19[789]|20[0123])[0-9](0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])([01][0-9]|2[0-4])([0-5][0-9])([0-5][0-9])$";
public static final String PATTERN_YMDHMSMS = "^(19[789]|20[0123])[0-9](0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])([01][0-9]|2[0-4])([0-5][0-9])([0-5][0-9])([0-9]{3})$";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy