From: Bruno Wolff III <bruno@wolff.to>
To: LiveShell <liveshell@gmail.com>
Cc: hubert depesz lubaczewski <depesz@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: biginteger to timestamp
Date: Fri, 21 Jul 2006 12:47:45 -0500
Message-ID: <20060721174745.GA3490@wolff.to> (raw)
In-Reply-To: <928fe9b50607200241pea3a0bej11083ebd45dae8d4@mail.gmail.com>
References: <928fe9b50607200226w3c9eca67h5e0e5d9a4466aeef@mail.gmail.com>
<9e4684ce0607200232j5db5ddcdp8ba85ee5b212fbfa@mail.gmail.com>
<928fe9b50607200241pea3a0bej11083ebd45dae8d4@mail.gmail.com>
On Thu, Jul 20, 2006 at 15:11:35 +0530,
LiveShell <liveshell@gmail.com> wrote:
> hi hubert
> actally i have UNIX time and that is in *1153222974* format. and i m using
> C api to insert this time in a column whose type is timestamp.
> so now can u tell me .... how can i convert it to timestamp and insert into
> the timestamp column.
Note that you should be using "timestamp with time zone" (timestamptz) for
this rather than "timestamp".
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bruno@wolff.to, liveshell@gmail.com, depesz@gmail.com
Subject: Re: biginteger to timestamp
In-Reply-To: <20060721174745.GA3490@wolff.to>
References: <928fe9b50607200226w3c9eca67h5e0e5d9a4466aeef@mail.gmail.com> <9e4684ce0607200232j5db5ddcdp8ba85ee5b212fbfa@mail.gmail.com> <928fe9b50607200241pea3a0bej11083ebd45dae8d4@mail.gmail.com> <20060721174745.GA3490@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox