public class Date
extends java.lang.Object
A date representing a calendar day with no time of day or timezone. The corresponding Java type is a java.util.Date with hours, minutes, seconds, milliseconds set to 0. The underlying representation is an integer representing the number of standardized days (based on a number of milliseconds with 24 hours/day, 60 minutes/hour, 60 seconds/minute, 1000 milliseconds/second with n) since Unix epoch.
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | LOGICAL_NAME | 
| static Schema | SCHEMA | 
| Constructor and Description | 
|---|
| Date() | 
| Modifier and Type | Method and Description | 
|---|---|
| static SchemaBuilder | builder()Returns a SchemaBuilder for a Date. | 
| static int | fromLogical(Schema schema,
           java.util.Date value)Convert a value from its logical format (Date) to it's encoded format. | 
| static java.util.Date | toLogical(Schema schema,
         int value) | 
public static final java.lang.String LOGICAL_NAME
public static final Schema SCHEMA
public static SchemaBuilder builder()
public static int fromLogical(Schema schema, java.util.Date value)
value - the logical valuepublic static java.util.Date toLogical(Schema schema, int value)