Converting a TimestampTz into a C# DateTime

Поиск
Список
Период
Сортировка
От valeriof
Тема Converting a TimestampTz into a C# DateTime
Дата
Msg-id 1479124334558-5930221.post@n3.nabble.com
обсуждение исходный текст
Ответы Re: Converting a TimestampTz into a C# DateTime  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Re: Converting a TimestampTz into a C# DateTime  (Arjen Nienhuis <a.g.nienhuis@gmail.com>)
Список pgsql-general
Hi,
I'm handling a TimestampTz value inside a plugin to stream WAL changes to a
.NET client application. What I'm trying to do is to return all possible
column changes as binary (don't like to have Postgres handle the conversion
to string as I may need to have access to the bytes at the client level). In
case of a TimestampTz, is it possible to return the 8-bytes long integer and
then from the C# application convert the value to Ticks?

Thanks,
Valerio



--
View this message in context: http://postgresql.nabble.com/Converting-a-TimestampTz-into-a-C-DateTime-tp5930221.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: Tobias Bussmann
Дата:
Сообщение: Re: Sequential parallel scan / agg
Следующее
От: Albe Laurenz
Дата:
Сообщение: Re: Converting a TimestampTz into a C# DateTime