All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.nichetoolkit.rest.constant.DateConstants Maven / Gradle / Ivy

The newest version!
package io.github.nichetoolkit.rest.constant;

import java.text.SimpleDateFormat;
import java.util.Map;
import java.util.regex.Pattern;

/**
 * DateConstants
 * 

The date constants interface.

* @author Cyan ([email protected]) * @since Jdk1.8 */ public interface DateConstants { /** * DATE_THREAD_LOCAL * {@link java.lang.ThreadLocal}

The constant DATE_THREAD_LOCAL field.

* @see java.lang.ThreadLocal */ ThreadLocal> DATE_THREAD_LOCAL = new ThreadLocal<>(); /** * DATE_FORMAT_THREAD_LOCAL * {@link java.lang.ThreadLocal}

The constant DATE_FORMAT_THREAD_LOCAL field.

* @see java.lang.ThreadLocal */ ThreadLocal> DATE_FORMAT_THREAD_LOCAL = new ThreadLocal<>(); /** * DATE_PATTERN_1 * {@link java.util.regex.Pattern}

The constant DATE_PATTERN_1 field.

* @see java.util.regex.Pattern */ Pattern DATE_PATTERN_1 = Pattern.compile("^\\[\\$-.*?]"); /** * DATE_PATTERN_2 * {@link java.util.regex.Pattern}

The constant DATE_PATTERN_2 field.

* @see java.util.regex.Pattern */ Pattern DATE_PATTERN_2 = Pattern.compile("^\\[[a-zA-Z]+]"); /** * DATE_PATTERN_3_A * {@link java.util.regex.Pattern}

The constant DATE_PATTERN_3_A field.

* @see java.util.regex.Pattern */ Pattern DATE_PATTERN_3_A = Pattern.compile("[yYmMdDhHsS]"); /** * DATE_PATTERN_3_B * {@link java.util.regex.Pattern}

The constant DATE_PATTERN_3_B field.

* @see java.util.regex.Pattern */ Pattern DATE_PATTERN_3_B = Pattern.compile("^[\\[\\]yYmMdDhHsS\\-T/年月日,. :\"\\\\]+0*[ampAMP/]*$"); /** * DATE_PATTERN_4 * {@link java.util.regex.Pattern}

The constant DATE_PATTERN_4 field.

* @see java.util.regex.Pattern */ Pattern DATE_PATTERN_4 = Pattern.compile("^\\[([hH]+|[mM]+|[sS]+)]"); /** * DATE_PATTERN_6 * {@link java.util.regex.Pattern}

The constant DATE_PATTERN_6 field.

* @see java.util.regex.Pattern */ Pattern DATE_PATTERN_6 = Pattern.compile("([年月日时分秒])+"); /** * DATE_PATTERN_5 * {@link java.util.regex.Pattern}

The constant DATE_PATTERN_5 field.

* @see java.util.regex.Pattern */ Pattern DATE_PATTERN_5 = Pattern.compile("^\\[DBNum([123])]"); /** * DATE_FORMAT_10 * {@link java.lang.String}

The constant DATE_FORMAT_10 field.

* @see java.lang.String */ String DATE_FORMAT_10 = "yyyy-MM-dd"; /** * DATE_FORMAT_14 * {@link java.lang.String}

The constant DATE_FORMAT_14 field.

* @see java.lang.String */ String DATE_FORMAT_14 = "yyyyMMddHHmmss"; /** * DATE_FORMAT_18 * {@link java.lang.String}

The constant DATE_FORMAT_18 field.

* @see java.lang.String */ String DATE_FORMAT_18 = "yyyy-MM-ddHH:mm:ss"; /** * DATE_FORMAT_19 * {@link java.lang.String}

The constant DATE_FORMAT_19 field.

* @see java.lang.String */ String DATE_FORMAT_19 = "yyyy-MM-dd HH:mm:ss"; /** * DATE_FORMAT_17 * {@link java.lang.String}

The constant DATE_FORMAT_17 field.

* @see java.lang.String */ String DATE_FORMAT_17 = "yyyyMMdd HH:mm:ss"; /** * DATE_FORMAT_19_FORWARD_SLASH * {@link java.lang.String}

The constant DATE_FORMAT_19_FORWARD_SLASH field.

* @see java.lang.String */ String DATE_FORMAT_19_FORWARD_SLASH = "yyyy/MM/dd HH:mm:ss"; /** * DATE_FORMAT_23 * {@link java.lang.String}

The constant DATE_FORMAT_23 field.

* @see java.lang.String */ String DATE_FORMAT_23 = "yyyy-MM-dd HH:mm:ss.SSS"; /** * DATE_FORMAT_23_FORWARD_SLASH * {@link java.lang.String}

The constant DATE_FORMAT_23_FORWARD_SLASH field.

* @see java.lang.String */ String DATE_FORMAT_23_FORWARD_SLASH = "yyyy/MM/dd HH:mm:ss.SSS"; /** * MINUS * {@link java.lang.String}

The constant MINUS field.

* @see java.lang.String */ String MINUS = "-"; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy