cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

sql: Add useful Date/Timestamp functions.

Open vivekmenezes opened this issue 11 years ago • 1 comments

http://www.postgresql.org/docs/8.0/static/functions-datetime.html lists all the functions. I think we should at least implement

age(timestamp, timestamp) age(timestamp) -> interval current_date current_timestamp/localtimestamp/now

vivekmenezes avatar Sep 02 '15 15:09 vivekmenezes

We should also implement extract which looks like the workhorse for pulling components (year, month, day, hour, etc) out of a date/timestamp.

petermattis avatar Sep 02 '15 16:09 petermattis