From: LiveShell <liveshell@gmail.com>
To: hubert depesz lubaczewski <depesz@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: biginteger to timestamp
Date: Thu, 20 Jul 2006 15:11:35 +0530
Message-ID: <928fe9b50607200241pea3a0bej11083ebd45dae8d4@mail.gmail.com> (raw)
In-Reply-To: <9e4684ce0607200232j5db5ddcdp8ba85ee5b212fbfa@mail.gmail.com>
References: <928fe9b50607200226w3c9eca67h5e0e5d9a4466aeef@mail.gmail.com>
<9e4684ce0607200232j5db5ddcdp8ba85ee5b212fbfa@mail.gmail.com>
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.
On 7/20/06, hubert depesz lubaczewski <depesz@gmail.com> wrote:
>
> On 7/20/06, LiveShell <liveshell@gmail.com> wrote:
> >
> > Hi all,
> > I want to convert biginteger and integer data type to timestamp
> > data type.
> > Can any body tell me how to convert??
> >
>
> and what is in this biginteger?
> is it something like:
> 20060720113254::bigint
> or rather something like "seconds from epoch"?
> or something totally different?
>
> depesz
>
> --
> http://www.depesz.com/ - nowy, lepszy depesz
>
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: liveshell@gmail.com, depesz@gmail.com
Subject: Re: biginteger to timestamp
In-Reply-To: <928fe9b50607200241pea3a0bej11083ebd45dae8d4@mail.gmail.com>
References: <928fe9b50607200226w3c9eca67h5e0e5d9a4466aeef@mail.gmail.com> <9e4684ce0607200232j5db5ddcdp8ba85ee5b212fbfa@mail.gmail.com> <928fe9b50607200241pea3a0bej11083ebd45dae8d4@mail.gmail.com>
* 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