X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 455D5D1BAC8 for ; Fri, 22 Aug 2003 03:42:32 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 16535-06 for ; Fri, 22 Aug 2003 03:42:01 -0300 (ADT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by svr1.postgresql.org (Postfix) with ESMTP id 0806CD1BA9B for ; Fri, 22 Aug 2003 03:41:59 -0300 (ADT) Received: from klaster.net (core-1.citynet.pl [80.48.135.69]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id 584192B3A4; Fri, 22 Aug 2003 08:41:57 +0200 (CEST) Message-ID: <3F45BB45.80704@klaster.net> Date: Fri, 22 Aug 2003 08:42:13 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.5a) Gecko/20030718 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: MichaelHoeller@t-online.de Cc: pgsql-sql@postgresql.org Subject: Re: date calculation References: <1061533501.3f45b73d6566d@webmail.t-online.de> In-Reply-To: <1061533501.3f45b73d6566d@webmail.t-online.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/267 X-Sequence-Number: 14883 > Hi there, > > I have a problem calculating a date. A field carries the date as passed > seconds since Jan 1st 1970. > How can I get the date as dd.mm.yyyy out of this?? cast('1970-1-1' as timestamp)+cast(your_ticks || ' seconds' as interval) Does anyone know better way to cast it? Regards, Tomasz Myrta