Class DateTimeUtil

java.lang.Object
org.apache.iceberg.util.DateTimeUtil

public class DateTimeUtil extends Object
  • Field Details

  • Method Details

    • dateFromDays

      public static LocalDate dateFromDays(int daysFromEpoch)
    • daysFromDate

      public static int daysFromDate(LocalDate date)
    • daysFromInstant

      public static int daysFromInstant(Instant instant)
    • timeFromMicros

      public static LocalTime timeFromMicros(long microFromMidnight)
    • microsFromTime

      public static long microsFromTime(LocalTime time)
    • timestampFromMicros

      public static LocalDateTime timestampFromMicros(long microsFromEpoch)
    • microsFromInstant

      public static long microsFromInstant(Instant instant)
    • microsFromTimestamp

      public static long microsFromTimestamp(LocalDateTime dateTime)
    • microsToMillis

      public static long microsToMillis(long micros)
    • timestamptzFromMicros

      public static OffsetDateTime timestamptzFromMicros(long microsFromEpoch)
    • microsFromTimestamptz

      public static long microsFromTimestamptz(OffsetDateTime dateTime)
    • formatTimestampMillis

      public static String formatTimestampMillis(long millis)
    • daysToIsoDate

      public static String daysToIsoDate(int days)
    • microsToIsoTime

      public static String microsToIsoTime(long micros)
    • microsToIsoTimestamptz

      public static String microsToIsoTimestamptz(long micros)
    • microsToIsoTimestamp

      public static String microsToIsoTimestamp(long micros)
    • isoDateToDays

      public static int isoDateToDays(String dateString)
    • isoTimeToMicros

      public static long isoTimeToMicros(String timeString)
    • isoTimestamptzToMicros

      public static long isoTimestamptzToMicros(String timestampString)
    • isUTCTimestamptz

      public static boolean isUTCTimestamptz(String timestampString)
    • isoTimestampToMicros

      public static long isoTimestampToMicros(String timestampString)
    • daysToYears

      public static int daysToYears(int days)
    • daysToMonths

      public static int daysToMonths(int days)
    • microsToYears

      public static int microsToYears(long micros)
    • microsToMonths

      public static int microsToMonths(long micros)
    • microsToDays

      public static int microsToDays(long micros)
    • microsToHours

      public static int microsToHours(long micros)