- The optional precision
- p should be between 0 and 6, and
- defaults to the precision of the input literal.
+ The optional subsecond precision p should
+ be between 0 and 6, and defaults to the precision of the input literal.
+
+
+ Internally interval> values are stored as months, days,
+ and seconds. This is done because the number of days in a month
+ varies, and a day can have 23 or 25 hours if a daylight savings
+ time adjustment is involved. Because intervals are usually created
+ from constant strings or timestamp> subtraction, this
+ storage method works well in most cases. Functions
+ justify_days> and justify_hours> are
+ available for adjusting days and hours that overflow their normal
+ periods.
CURRENT_DATE, CURRENT_TIME,
CURRENT_TIMESTAMP, LOCALTIME,
LOCALTIMESTAMP. The latter four accept an
- optional precision specification. (See
+ optional
subsecond precision specification. (See
linkend="functions-datetime-current">.) Note however that these are
SQL functions and are not> recognized as data input strings.