nuodb / nuodb-dotnet

.NET Driver for NuoDB
Other
21 stars 13 forks source link

encodeTimestamp is sending femtoseconds #23

Closed gittywithexcitement closed 9 years ago

gittywithexcitement commented 9 years ago

https://github.com/nuodb/nuodb-dotnet/blob/4f9e6e43c61e0450670707baaefc69f7b748e60c/NuoDb.Data.Client/EncodedDataStream.cs#L690

Here we take a value in millseconds and multiply by 10^(3+9). That is, a value of seconds * 10^(3+3+9) = seconds * 10^15, or femtoseconds. The server is expecting nanoseconds.