Class DateTimeUtils
- java.lang.Object
-
- org.apache.flink.autoscaler.utils.DateTimeUtils
-
public class DateTimeUtils extends java.lang.Object
Date and time related utilities.
-
-
Constructor Summary
Constructors Constructor Description DateTimeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
readable(java.time.Instant instant)
Convert an Instant to a readable format for the system default zone.static java.lang.String
readable(java.time.Instant instant, java.time.ZoneId zoneId)
Convert an Instant to a readable format for a given zone.
-
-
-
Method Detail
-
readable
public static java.lang.String readable(java.time.Instant instant)
Convert an Instant to a readable format for the system default zone.- Parameters:
instant
- The Instant to convert.- Returns:
- The readable format in the system default zone.
-
readable
public static java.lang.String readable(java.time.Instant instant, java.time.ZoneId zoneId)
Convert an Instant to a readable format for a given zone.- Parameters:
instant
- The Instant to convert.zoneId
- The ZoneId to apply.- Returns:
- The readable format in the specified time zone.
-
-