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 StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic IVLTSdate2Ivlts(Date value) Deprecated.static IVLTSdate2IvltsDateOnly(Date value) Deprecated.static IVLTSdate2IvltsTzon(Date value) Deprecated.static TSDeprecated.static TSdate2TsDateOnly(ZonedDateTime value) Deprecated.static TSdate2TsDateOnly(Date value) Deprecated.static TSdate2TsTzon(Date value) Deprecated.static booleanequalsDateOnly(Date validFrom, Date validFrom2) Deprecated.static StringformatDateOnly(ZonedDateTime value) Deprecated.static StringformatDateOnly(Date value) Deprecated.static StringformatDateTime(ZonedDateTime value) Deprecated.static StringformatDateTime(Date value) Deprecated.static StringformatDateTimeTzon(ZonedDateTime value) Deprecated.static StringformatDateTimeTzon(Date value) Deprecated.static DateDeprecated.static DateparseDate(ZonedDateTime date) Deprecated, for removal: This API element is subject to removal in a future version.static DateparseDateAndTime(String dateSt) Deprecated.static DateparseDateyyyyMM(String value) Deprecated.static DateparseDateyyyyMMdd(String value) Deprecated.static DateparseDateyyyyMMdd2(String value) Deprecated.static DateparseDateyyyyMMddHHmm(String value) Deprecated.static DateparseDateyyyyMMddHHmmss(String value) Deprecated.static DateparseDateyyyyMMddHHmmZ(String value) Deprecated.static DateparseDateyyyyMMddHHmmZZZZ(String value) Deprecated.static DateparseDateyyyyMMddTHHmmss(String value) Deprecated.static ZonedDateTimeparseZonedDate(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
-