Package org.qubership.atp.ram.utils
Class TimeUtils
java.lang.Object
org.qubership.atp.ram.utils.TimeUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatDateTime(Timestamp timestamp, String pattern) static StringformatDateTime(Timestamp timestamp, String pattern, String timezone) Format date by provided pattern and timezone.static longgetDuration(Timestamp startDate, Timestamp finishDate) Returns duration in seconds.
-
Field Details
-
DEFAULT_DATE_TIME_PATTERN
- See Also:
-
-
Method Details
-
getDuration
Returns duration in seconds. -
formatDateTime
-
formatDateTime
Format date by provided pattern and timezone.- Parameters:
timestamp- date valuepattern- patterntimezone- time zone- Returns:
- formatted string date value
-