Re: Datetime stored in bigint

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: Datetime stored in bigint
Дата
Msg-id 718a1e0cf8e0a17b104539aa7fadc462@biglumber.com
обсуждение исходный текст
Ответ на Datetime stored in bigint  (dev ss <ssdev938@gmail.com>)
Ответы Re: Datetime stored in bigint  (James David Smith <james.david.smith@gmail.com>)
Список pgsql-novice
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


> 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@turnstep.com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201107151645
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAk4grUUACgkQvJuQZxSWSsgiiQCfV64u4quKX7CMGGNccy4TK394
2/QAoLB+ExRqYDJEGdyPxAyVkUa5yOO3
=Rc2q
-----END PGP SIGNATURE-----



В списке pgsql-novice по дате отправления:

Предыдущее
От: dev ss
Дата:
Сообщение: Datetime stored in bigint
Следующее
От: James David Smith
Дата:
Сообщение: Re: Datetime stored in bigint