Class DateUtils
java.lang.Object
cern.nxcals.api.backport.domain.util.DateUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatAsLocalDate(Date date) static StringformatAsLocalTime(Timestamp time) static StringformatAsUTCDate(Date date) static StringformatAsUTCTime(Timestamp time) static Stringstatic StringformatTimestamp(Timestamp timestamp, LoggingTimeZone timeZone) getDaylightSavingChanges(Date start, Date end) static StringgetFormattedStamp(Timestamp timestamp, LoggingTimeZone timeZone) Returns a String formatted according to the given timestampstatic Calendar
-
Field Details
-
DATE_FORMAT_PATTERN
- See Also:
-
TIMESTAMP_FORMAT_PATTERN
- See Also:
-
UTC_TIMEZONE
-
LOCAL_TIMEZONE
-
-
Method Details
-
formatTimestamp
-
formatAsLocalDate
-
formatAsLocalTime
-
formatAsUTCDate
-
formatAsUTCTime
-
formatForInstrumentation
-
getDaylightSavingChanges
-
getFormattedStamp
Returns a String formatted according to the given timestamp- Parameters:
timestamp-timeZone-- Returns:
- A formatted string
-
newUTCCalendar
-