Converting a TimestampTz into a C# DateTime

From: valeriof <valerio_farruggio(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Converting a TimestampTz into a C# DateTime
Date: 2016-11-14 11:52:14
Message-ID: 1479124334558-5930221.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2016-11-14 12:12:07 Re: Converting a TimestampTz into a C# DateTime
Previous Message Tobias Bussmann 2016-11-14 10:36:07 Re: Sequential parallel scan / agg