High-precision date and time; see also
linkend="functions-datetime-current">below
timeofday()
|
timestamp(date)
timestamp
- convert d ate to timestamp
+ D ate to timestamp
timestamp(date '2000-12-25')
2000-12-25 00:00:00
|
timestamp(date, time)
timestamp
- combine date and time in to a timestamp
+ Date and time to a timestamp
timestamp(date '1998-02-24',time '23:07')
1998-02-24 23:07:00
evaluates to type timestamp or interval .
(Expressions of type date or time will
be cast to timestamp and can therefore be used as
- well.) field is an identifier (not a
- string!) that selects what field to extract from the source value.
+ well.) field is an identifier or
+ string that selects what field to extract from the source value.
The extract function returns values of type
double precision .
The following are valid values:
- Note that this is not really the century that the date is in.
+ Note that the result for the century field is simply the year field
+ divided by 100, and not the conventional definition which puts most
+ years in the 1900's in the twentieth century.
- Note that this is not really the millennium that the date is in.
+ Note that the result for the millennium field is simply the year field
+ divided by 1000, and not the conventional definition which puts
+ years in the 1900's in the second millennium.
- The date_part function is the traditional
-
Post gres equivalent to the
+ The date_part function is modeled on the traditional
+
In gres equivalent to the
date_part('field ', source )
Miscellaneous Functions>
- Name> Return t ype> Description> |
+ Name> Return T ype> Description> |
1997-10-02
-
Genetic Query Optimization in Database Systems
+
Genetic Query Optimization
-
libpgeasy - Simplified C Binding Library
+
libpgeasy - Simplified C Library
Author
|
+ Isolation Level
Dirty Read
-
Database User and Permission Management
+
Database Users and Permissions
Managing database users and their privileges is in concept similar