| From: | LiveShell <liveshell(at)gmail(dot)com> |
|---|---|
| To: | "hubert depesz lubaczewski" <depesz(at)gmail(dot)com> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: biginteger to timestamp |
| Date: | 2006-07-20 09:41:35 |
| Message-ID: | 928fe9b50607200241pea3a0bej11083ebd45dae8d4@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
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(at)gmail(dot)com> wrote:
>
> On 7/20/06, LiveShell <liveshell(at)gmail(dot)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
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ben K. | 2006-07-20 11:41:49 | Re: biginteger to timestamp |
| Previous Message | hubert depesz lubaczewski | 2006-07-20 09:32:45 | Re: biginteger to timestamp |