Class Time


public class Time extends Object

A time representing a specific point in a day, not tied to any specific date. The corresponding Java type is a java.util.Date where only hours, minutes, seconds, and milliseconds can be non-zero. This effectively makes it a point in time during the first day after the Unix epoch. The underlying representation is an integer representing the number of milliseconds after midnight.

  • Field Details

  • Constructor Details

    • Time

      public Time()
  • Method Details

    • builder

      public static SchemaBuilder builder()
      Returns a SchemaBuilder for a Time. By returning a SchemaBuilder you can override additional schema settings such as required/optional, default value, and documentation.
      a SchemaBuilder
    • fromLogical

      public static int fromLogical(Schema schema, Date value)
      Convert a value from its logical format (Time) to it's encoded format.
      value - the logical value
      the encoded value
    • toLogical

      public static Date toLogical(Schema schema, int value)