Timestamp

Started by Postgres Sql - CTIabout 27 years ago2 messagesgeneral
Jump to latest
#1Postgres Sql - CTI
pgsqlcti@vetnet2.vetorialnet.com.br

Hi all,

I'd like know how can I change a timestamp field's value starting
from the "current_timestamp" value. My objective is to calculate a time
interval.

I was trying to do something like this:

- insert into logs values ('login', 'session', current_timestamp);

But, I don't want to include the <current> date and time. Before
including data into the table, I'd like to plus 10 minutes in
current_timestamp.

Thanks for any help.

Luiz

#2Gregory Maxwell
greg@z.ml.org
In reply to: Postgres Sql - CTI (#1)
Re: [GENERAL] Timestamp

Something like ('now'::datetime + '10 min'::timespan) might work..

On Wed, 17 Mar 1999, Postgres Sql - CTI wrote:

Show quoted text

Hi all,

I'd like know how can I change a timestamp field's value starting
from the "current_timestamp" value. My objective is to calculate a time
interval.

I was trying to do something like this:

- insert into logs values ('login', 'session', current_timestamp);

But, I don't want to include the <current> date and time. Before
including data into the table, I'd like to plus 10 minutes in
current_timestamp.

Thanks for any help.

Luiz