- All Implemented Interfaces:
Serializable,Comparable<DateTimes>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFormat : dd-MM HHFormat : dd-MM HH:mmFormat : dd-MM HH:mm:ssFormat : dd-MM HH:mm:ss.SSSSFormat : dd-MM-yyyy HHFormat : dd-MM-yyyy HH:mmFormat : dd-MM-yyyy HH:mm:ssFormat : dd-MM-yyyy HH:mm:ss.SSSSFormat : dd MMMM HHFormat : dd MMMM HH:mmFormat : dd MMMM HH:mm:ssFormat : dd MMMM HH:mm:ss.SSSSFormat : dd MMMM yyyy HHFormat : dd MMMM yyyy HH:mmFormat : dd MMMM yyyy HH:mm:ssFormat : dd MMMM yyyy HH:mm:ss.SSSSFormat : MM-dd HHFormat : MM-dd HH:mmFormat : MM-dd HH:mm:ssFormat : MM-dd HH:mm:ss.SSSSFormat : MM-dd-yyyy HHFormat : MM-dd-yyyy HH:mmFormat : MM-dd-yyyy HH:mm:ssFormat : MM-dd-yyyy HH:mm:ss.SSSSFormat : MMdd HHFormat : MMdd HHmmFormat : MMdd HHmmssFormat : MMdd HHmmss.SSSSFormat : MMM dd HHFormat : MMM dd HH:mmFormat : MMM dd HH:mm:ssFormat : MMM dd HH:mm:ss.SSSSFormat : MMM dd, yyyy HHFormat : MMM dd, yyyy HH:mmFormat : MMM dd, yyyy HH:mm:ssFormat : MMM dd, yyyy HH:mm:ss.SSSSFormat : yyyy-MM-dd HHFormat : yyyy-MM-dd HH:mmFormat : yyyy-MM-dd HH:mm:ssFormat : yyyy-MM-dd HH:mm:ss.SSSSFormat : yyyyMMdd HHmmFormat : yyyyMMdd HHmmssFormat : yyyyMMdd HHmmss.SSSS -
Method Summary
Modifier and TypeMethodDescriptionformat(LocalDateTime dateTime) format(LocalDateTime dateTime, ZoneId zoneId) format(ZonedDateTime dateTime) format(ZonedDateTime zonedDateTime, ZoneId zoneId) static ZonedDateTimefromEpoch(long epoch) static ZonedDateTimestatic longtoEpoch(LocalDateTime dateTime) static longtoEpoch(LocalDateTime dateTime, ZoneId zoneId) static longtoEpoch(ZonedDateTime zonedDateTime) static longtoEpoch(ZonedDateTime zonedDateTime, ZoneId zoneId) static DateTimesReturns the enum constant of this class with the specified name.static DateTimes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
yyyy_MM_dd_HH_mm_ss_SSSS
Format : yyyy-MM-dd HH:mm:ss.SSSS
Example: 2022-03-30 23:59:59.9876
-
yyyy_MM_dd_HH_mm_ss
Format : yyyy-MM-dd HH:mm:ss
Example: 2022-03-30 23:59:59
-
yyyy_MM_dd_HH_mm
Format : yyyy-MM-dd HH:mm
Example: 2022-03-30 23:59
-
yyyy_MM_dd_HH
Format : yyyy-MM-dd HH
Example: 2022-03-30 23
-
MM_dd_HH_mm_ss_SSSS
Format : MM-dd HH:mm:ss.SSSS
Example: 03-30 23:59:59.9876
-
MM_dd_HH_mm_ss
Format : MM-dd HH:mm:ss
Example: 03-30 23:59:59
-
MM_dd_HH_mm
Format : MM-dd HH:mm
Example: 03-30 23:59
-
MM_dd_HH
Format : MM-dd HH
Example: 03-30 23
-
yyyyMMdd_HHmmss_SSSS
Format : yyyyMMdd HHmmss.SSSS
Example: 20220330 235959.9876
-
yyyyMMdd_HHmmss
Format : yyyyMMdd HHmmss
Example: 20220330 235959
-
yyyyMMdd_HHmm
Format : yyyyMMdd HHmm
Example: 20220330 2359
-
MMdd_HHmmss_SSSS
Format : MMdd HHmmss.SSSS
Example: 0330 235959.9876
-
MMdd_HHmmss
Format : MMdd HHmmss
Example: 0330 235959
-
MMdd_HHmm
Format : MMdd HHmm
Example: 03-30 23:59
-
MMdd_HH
Format : MMdd HH
Example: 0330 23
-
dd_MM_yyyy_HH_mm_ss_SSSS
Format : dd-MM-yyyy HH:mm:ss.SSSS
Example: 30-03-2022 23:59:59.9876
-
dd_MM_yyyy_HH_mm_ss
Format : dd-MM-yyyy HH:mm:ss
Example: 30-03-2022 23:59:59
-
dd_MM_yyyy_HH_mm
Format : dd-MM-yyyy HH:mm
Example: 30-03-2022 23:59
-
dd_MM_yyyy_HH
Format : dd-MM-yyyy HH
Example: 30-03-2022 23
-
dd_MM_HH_mm_ss_SSSS
Format : dd-MM HH:mm:ss.SSSS
Example: 30-03 23:59:59.9876
-
dd_MM_HH_mm_ss
Format : dd-MM HH:mm:ss
Example: 30-03 23:59:59
-
dd_MM_HH_mm
Format : dd-MM HH:mm
Example: 30-03 23:59
-
dd_MM_HH
Format : dd-MM HH
Example: 30-03 23
-
MM_dd_yyyy_HH_mm_ss_SSSS
Format : MM-dd-yyyy HH:mm:ss.SSSS
Example: 03-30-2022 23:59:59.9876
-
MM_dd_yyyy_HH_mm_ss
Format : MM-dd-yyyy HH:mm:ss
Example: 03-30-2022 23:59:59
-
MM_dd_yyyy_HH_mm
Format : MM-dd-yyyy HH:mm
Example: 03-30-2022 23:59
-
MM_dd_yyyy_HH
Format : MM-dd-yyyy HH
Example: 03-30-2022 23
-
MMM_dd_yyyy_HH_mm_ss_SSSS
Format : MMM dd, yyyy HH:mm:ss.SSSS
Example: Mar 30, 2022 23:59:59.9876
-
MMM_dd_yyyy_HH_mm_ss
Format : MMM dd, yyyy HH:mm:ss
Example: Mar 30, 2022 23:59:59
-
MMM_dd_yyyy_HH_mm
Format : MMM dd, yyyy HH:mm
Example: Mar 30, 2022 23:59
-
MMM_dd_yyyy_HH
Format : MMM dd, yyyy HH
Example: Mar 30, 2022 23
-
MMM_dd_HH_mm_ss_SSSS
Format : MMM dd HH:mm:ss.SSSS
Example: Mar 30 23:59:59.9876
-
MMM_dd_HH_mm_ss
Format : MMM dd HH:mm:ss
Example: Mar 30 23:59:59
-
MMM_dd_HH_mm
Format : MMM dd HH:mm
Example: Mar 30 23:59
-
MMM_dd_HH
Format : MMM dd HH
Example: Mar 30 23
-
dd_MMMM_yyyy_HH_mm_ss_SSSS
Format : dd MMMM yyyy HH:mm:ss.SSSS
Example: 30 March 2022 23:59:59.9876
-
dd_MMMM_yyyy_HH_mm_ss
Format : dd MMMM yyyy HH:mm:ss
Example: 30 March 2022 23:59:59
-
dd_MMMM_yyyy_HH_mm
Format : dd MMMM yyyy HH:mm
Example: 30 March 2022 23:59
-
dd_MMMM_yyyy_HH
Format : dd MMMM yyyy HH
Example: 30 March 2022 23
-
dd_MMMM_HH_mm_ss_SSSS
Format : dd MMMM HH:mm:ss.SSSS
Example: 30 March 23:59:59.9876
-
dd_MMMM_HH_mm_ss
Format : dd MMMM HH:mm:ss
Example: 30 March 23:59:59
-
dd_MMMM_HH_mm
Format : dd MMMM HH:mm
Example: 30 March 23:59
-
dd_MMMM_HH
Format : dd MMMM HH
Example: 30 March 23
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
format
-
format
-
format
-
format
-
toEpoch
-
toEpoch
-
toEpoch
-
toEpoch
-
fromEpoch
-
fromEpoch
-