-----BEGIN PGP SIGNED MESSAGE-----
> We have a program store into postgres database as UTF-8 format
> i need to convert this value from 634301616478281250 to
> date time format.
You'll have to tell us where you are getting that number from,
and (possibly) what timestamp it should map to. From the size of it,
I would guess it's the number of nanoseconds since some point of time.
The point in time it's coming from may be 1970-01-01, 1900-01-01,
or something else (e.g. 1601-01-01). (Different computer systems
store time differently). If it's the standard Unix epoch (1970)
that corresponds to February 1990, if that helps.
Greg Sabino Mullane greg(at)turnstep(dot)com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201107151645
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
In response to
pgsql-novice by date
|Next:||From: James David Smith||Date: 2011-07-15 23:37:24|
|Subject: Re: Datetime stored in bigint|
|Previous:||From: dev ss||Date: 2011-07-15 19:58:09|
|Subject: Datetime stored in bigint|