KalleOlaviNiemitalo commented on PR #2554:
URL: https://github.com/apache/avro/pull/2554#issuecomment-1765087969

   The C# library translates the other timestamp logical types to the 
[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime?view=netstandard-2.0)
 and 
[DateTimeOffset](https://learn.microsoft.com/dotnet/api/system.datetimeoffset?view=netstandard-2.0)
 types; however, those have a precision of 100 nanoseconds, so they wouldn't be 
able to represent all the `timestamp-nanos` and `local-timestamp-nanos` values 
exactly.  I guess the library would then have to define new types for these 
purposes, with explicit conversion operators to and from DateTime.  (The 
conversion to DateTime should be explicit because it can lose precision, and 
the conversion from DateTime should be explicit because it can overflow.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to