Re: date/time function - Mailing list pgsql-general

From Terry Lee Tucker
Subject Re: date/time function
Date
Msg-id 200512010421.59173.terry@esc1.com
Whole thread Raw
In response to date/time function  (Sterpu Victor <victor@ambra.ro>)
List pgsql-general
rnd=# select extract(epoch from timestamp '2002-09-08 05:29:41');
 date_part
------------
 1031477381
(1 row)

See the date/time functions documentation.

On Thursday 01 December 2005 04:07 am, Sterpu Victor saith:
> I need a function that will transform from the format '2002-09-08
> 05:29:41' to seconds since 1970.
>
> Thank you.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: date/time function
Next
From: Richard Huxton
Date:
Subject: Re: postgres log file