public interface Datetime
Container for abstract-type functional interfaces in PostgreSQL's
DATETIME
type category.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
TheDATE
type's PostgreSQL semantics: a signed number of days since the "Postgres epoch".static interface
TheTIME
type's PostgreSQL semantics: microseconds since midnight.static interface
TheTIMESTAMP
type's PostgreSQL semantics: microseconds since midnight of the PostgreSQL epoch, without an assumed time zone.static interface
TheTIMESTAMPTZ
type's PostgreSQL semantics: microseconds since midnight UTC of the PostgreSQL epoch.static interface
TheTIMETZ
type's PostgreSQL semantics: microseconds since midnight, accompanied by a time zone offset expressed in seconds. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
PostgreSQL "infinitely early" date, as a value of what would otherwise be days from the PostgreSQL epoch.static final int
PostgreSQL "infinitely late" date, as a value of what would otherwise be days from the PostgreSQL epoch.static final long
PostgreSQL "infinitely early" timestamp, as a value of what would otherwise be microseconds from the PostgreSQL epoch.static final long
PostgreSQL "infinitely late" timestamp, as a value of what would otherwise be microseconds from the PostgreSQL epoch.static final int
Maximum value allowed for a type modifier specifying the seconds digits to the right of the decimal point for aTIME
orTIMETZ
.static final int
Maximum value allowed for a type modifier specifying the seconds digits to the right of the decimal point for aTIMESTAMP
orTIMESTAMPTZ
.static final int
The PostgreSQL "epoch", 1 January 2000, as a Julian day; the date represented by aDATE
,TIMESTAMP
, orTIMESTAMPTZ
with a stored value of zero.static final long
The maximum allowed value, inclusive, for aTIME
or the time portion of aTIMETZ
.
-
Field Details
-
DATEVAL_NOBEGIN
static final int DATEVAL_NOBEGINPostgreSQL "infinitely early" date, as a value of what would otherwise be days from the PostgreSQL epoch.- See Also:
-
DATEVAL_NOEND
static final int DATEVAL_NOENDPostgreSQL "infinitely late" date, as a value of what would otherwise be days from the PostgreSQL epoch.- See Also:
-
DT_NOBEGIN
static final long DT_NOBEGINPostgreSQL "infinitely early" timestamp, as a value of what would otherwise be microseconds from the PostgreSQL epoch.- See Also:
-
DT_NOEND
static final long DT_NOENDPostgreSQL "infinitely late" timestamp, as a value of what would otherwise be microseconds from the PostgreSQL epoch.- See Also:
-
POSTGRES_EPOCH_JDATE
static final int POSTGRES_EPOCH_JDATEThe PostgreSQL "epoch", 1 January 2000, as a Julian day; the date represented by aDATE
,TIMESTAMP
, orTIMESTAMPTZ
with a stored value of zero.- See Also:
-
MAX_TIME_PRECISION
static final int MAX_TIME_PRECISIONMaximum value allowed for a type modifier specifying the seconds digits to the right of the decimal point for aTIME
orTIMETZ
.- See Also:
-
MAX_TIMESTAMP_PRECISION
static final int MAX_TIMESTAMP_PRECISIONMaximum value allowed for a type modifier specifying the seconds digits to the right of the decimal point for aTIMESTAMP
orTIMESTAMPTZ
.- See Also:
-
USECS_PER_DAY
static final long USECS_PER_DAYThe maximum allowed value, inclusive, for aTIME
or the time portion of aTIMETZ
.The limit is inclusive; PostgreSQL officially accepts 24:00:00 as a valid time value.
- See Also:
-