Package org.projecthusky.common.utils
Class DateUtil
java.lang.Object
org.projecthusky.common.utils.DateUtil
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version.static final String
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic IVLTS
date2Ivlts
(Date value) Deprecated.static IVLTS
date2IvltsDateOnly
(Date value) Deprecated.static IVLTS
date2IvltsTzon
(Date value) Deprecated.static TS
Deprecated.static TS
date2TsDateOnly
(ZonedDateTime value) Deprecated.static TS
date2TsDateOnly
(Date value) Deprecated.static TS
date2TsTzon
(Date value) Deprecated.static boolean
equalsDateOnly
(Date validFrom, Date validFrom2) Deprecated.static String
formatDateOnly
(ZonedDateTime value) Deprecated.static String
formatDateOnly
(Date value) Deprecated.static String
formatDateTime
(ZonedDateTime value) Deprecated.static String
formatDateTime
(Date value) Deprecated.static String
formatDateTimeTzon
(ZonedDateTime value) Deprecated.static String
formatDateTimeTzon
(Date value) Deprecated.static Date
Deprecated.static Date
parseDate
(ZonedDateTime date) Deprecated, for removal: This API element is subject to removal in a future version.static Date
parseDateAndTime
(String dateSt) Deprecated.static Date
parseDateyyyyMM
(String value) Deprecated.static Date
parseDateyyyyMMdd
(String value) Deprecated.static Date
parseDateyyyyMMdd2
(String value) Deprecated.static Date
parseDateyyyyMMddHHmm
(String value) Deprecated.static Date
parseDateyyyyMMddHHmmss
(String value) Deprecated.static Date
parseDateyyyyMMddHHmmZ
(String value) Deprecated.static Date
parseDateyyyyMMddHHmmZZZZ
(String value) Deprecated.static Date
parseDateyyyyMMddTHHmmss
(String value) Deprecated.static ZonedDateTime
parseZonedDate
(Date date) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
SHORT_DATE_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
LONG_DATE_FORMAT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
ERRORMSG_CANNOT_PARSE_DATE_VAL
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
date2Ivlts
Deprecated.Converts the given date to a CDA R2 IVL_TS value (without timezone).Konvertiert das angegebene Datum in einen CDA R2 IVL_TS-Wert (ohne Zeitzonenangabe).- Parameters:
value
- the value- Returns:
- the ivlts
-
date2IvltsDateOnly
Deprecated.Converts the given date to a CDA R2 IVL_TS value (without timezone).Konvertiert das angegebene Datum in einen CDA R2 IVL_TS-Wert (ohne Tageszeit und Zeitzonenangabe).- Parameters:
value
- the value- Returns:
- the ivlts
-
date2IvltsTzon
Deprecated.Converts the given date to a CDA R2 IVL_TS value (including timezone).Konvertiert das angegebene Datum in einen CDA R2 IVL_TS-Wert (mit Zeitzonenangabe).- Parameters:
value
- the value- Returns:
- the ivlts
-
date2Ts
Deprecated.Converts the given date including day of time to a CDA R2 TS (without time zone).Konvertiert das angegebene Datum inkl. Tageszeit in ein CDA R2 TS (ohne Zeitzone).- Parameters:
value
- the value- Returns:
- the ts
-
date2TsDateOnly
Deprecated.Converts the given date without day of time to a CDA R2 TS (without time zone).Konvertiert das angegebene Datum ohne Tageszeit in ein CDA R2 TS (ohne Zeitzone).- Parameters:
value
- the value- Returns:
- the ts
-
date2TsDateOnly
Deprecated.Converts the given date without day of time to a CDA R2 TS (without time zone).Konvertiert das angegebene Datum ohne Tageszeit in ein CDA R2 TS (ohne Zeitzone).- Parameters:
value
- the value- Returns:
- the ts
-
date2TsTzon
Deprecated.Converts the given date including day of time to a CDA R2 TS (including time zone).Konvertiert das angegebene Datum inkl. Tageszeit in ein CDA R2 TS (mit Zeitzone).- Parameters:
value
- the value- Returns:
- the ts
-
formatDateOnly
Deprecated.Formats the given timestamp as String: yyyyMMddFormatiert den angegebenen Zeitstempel als String: yyyyMMdd- Parameters:
value
- the value- Returns:
- the string
-
formatDateOnly
Deprecated.Formats the given timestamp as String: yyyyMMddFormatiert den angegebenen Zeitstempel als String: yyyyMMdd- Parameters:
value
- the value- Returns:
- the string
-
formatDateTime
Deprecated.Formats the given timestamp as String: yyyyMMddHHmmssFormatiert den angegebenen Zeitstempel als String: yyyyMMddHHmmss- Parameters:
value
- the value- Returns:
- the string
-
formatDateTime
Deprecated.Formats the given timestamp as String: yyyyMMddHHmmssFormatiert den angegebenen Zeitstempel als String: yyyyMMddHHmmss- Parameters:
value
- the value- Returns:
- the string
-
formatDateTimeTzon
Deprecated.Formats the given timestamp as String: yyyyMMddHHmmssXXXXFormatiert den angegebenen Zeitstempel als String: yyyyMMddHHmmssXXXX- Parameters:
value
- the value- Returns:
- the string
-
formatDateTimeTzon
Deprecated.Formats the given timestamp as String: yyyyMMddHHmmssXXXXFormatiert den angegebenen Zeitstempel als String: yyyyMMddHHmmssXXXX- Parameters:
value
- the value- Returns:
- the string
-
parseDate
Deprecated, for removal: This API element is subject to removal in a future version. -
parseZonedDate
Deprecated, for removal: This API element is subject to removal in a future version. -
parseDate
Deprecated.Parses the given String into a timestamp. Expected format: dd.MM.yyyyParst den angegebenen String in einen Zeitstempel. Erwartetes Format: dd.MM.yyyy- Parameters:
dateSt
-
date String- Returns:
- the date
-
parseDateAndTime
Deprecated.Parses the given String into a timestamp. Expected format: dd.MM.yyyy HH:mm or dd.MM.yyyy HH:mm:ssParst den angegebenen String in einen Zeitstempel. Erwartetes Format: dd.MM.yyyy HH:mm oder dd.MM.yyyy HH:mm:ss- Parameters:
dateSt
-
date String- Returns:
- the date
-
parseDateyyyyMM
Deprecated.Parses the given String into a timestamp. Expected format: yyyyMMParst den angegebenen String in einen Zeitstempel. Erwartetes Format: yyyyMM- Parameters:
value
-
value- Returns:
- java.util.Date
-
parseDateyyyyMMdd
Deprecated.Parses the given String into a timestamp. Expected format: yyyyMMddParst den angegebenen String in einen Zeitstempel. Erwartetes Format: yyyyMMdd- Parameters:
value
-
value- Returns:
- java.util.Date
-
parseDateyyyyMMdd2
Deprecated.Parses the given String into a timestamp. Expected format: yyyy-MM-ddParst den angegebenen String in einen Zeitstempel. Erwartetes Format: yyyy-MM-dd- Parameters:
value
-
value- Returns:
- java.util.Date
-
parseDateyyyyMMddHHmm
Deprecated.Parses the given String into a timestamp. Expected format: yyyyMMddHHmmParst den angegebenen String in einen Zeitstempel. Erwartetes Format: yyyyMMddHHmm- Parameters:
value
-
value- Returns:
- java.util.Date
-
parseDateyyyyMMddHHmmss
Deprecated.Parses the given String into a timestamp. Expected format: yyyyMMddHHmmssParst den angegebenen String in einen Zeitstempel. Erwartetes Format: yyyyMMddHHmmss- Parameters:
value
-
value- Returns:
- java.util.Date
-
parseDateyyyyMMddHHmmZ
Deprecated.Parses the given String into a timestamp. Expected format: yyyyMMddHHmmZParst den angegebenen String in einen Zeitstempel. Erwartetes Format: yyyyMMddHHmmZ- Parameters:
value
-
value- Returns:
- java.util.Date
-
parseDateyyyyMMddHHmmZZZZ
Deprecated.Parses the given String into a timestamp. Expected format: yyyyMMddHHmmZZZZParst den angegebenen String in einen Zeitstempel. Erwartetes Format: yyyyMMddHHmmZZZZ- Parameters:
value
-
value- Returns:
- java.util.Date
-
parseDateyyyyMMddTHHmmss
Deprecated.Parses the given String into a timestamp. Expected format: yyyy-MM-dd'T'HH:mm:ssParst den angegebenen String in einen Zeitstempel. Erwartetes Format: yyyy-MM-dd'T'HH:mm:ss- Parameters:
value
-
value- Returns:
- java.util.Date
-
equalsDateOnly
Deprecated.Check whether the dates of the two dates are equal (ignoring the time of the day).- Parameters:
validFrom
- the valid fromvalidFrom2
- the valid from 2- Returns:
- true, if equal
-