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

com.gitee.huanminabc.utils_common.enums.DateEnum Maven / Gradle / Ivy

There is a newer version: 1.0.5-RELEASE
Show newest version
package com.gitee.huanminabc.utils_common.enums;

import java.util.ArrayList;
import java.util.List;

public enum DateEnum {

    /**
     * 显示年月日时分秒,例如 2015-08-11 09:51:53.
     */
    DATETIME_PATTERN("yyyy-MM-dd HH:mm:ss"),
    DATETIME_T_PATTERN("yyyy-MM-dd'T'HH:mm:ss.SSSX"),
    /**
     * 仅显示年月日,例如 2015-08-11.
     */
    DATE_PATTERN("yyyy-MM-dd"),

    /**
     * 仅显示时分秒,例如 09:51:53.
     */
    TIME_PATTERN("HH:mm:ss"),
    /**
     * 显示年月日时分秒(无符号),例如 20150811095153.
     */
    UNSIGNED_DATETIME_PATTERN("yyyyMMddHHmmss"),
    /**
     * 仅显示年月日(无符号),例如 20150811.
     */
    UNSIGNED_DATE_PATTERN ("yyyyMMdd");
    /**
     * 显示年月日时分秒,例如 2015-08-11 09:51:53.
     */

    private  String value;

    DateEnum(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy