We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ec38b4 commit 2cd5f03Copy full SHA for 2cd5f03
src/Ydb.Sdk/src/Value/YdbValueParser.cs
@@ -1,4 +1,5 @@
1
-using Ydb.Sdk.Ado;
+using Google.Protobuf.WellKnownTypes;
2
+using Ydb.Sdk.Ado;
3
4
namespace Ydb.Sdk.Value;
5
@@ -96,7 +97,7 @@ public DateTime GetTimestamp()
96
97
public TimeSpan GetInterval()
98
{
99
EnsurePrimitiveTypeId(Type.Types.PrimitiveTypeId.Interval);
- return TimeSpan.FromMilliseconds((double)_protoValue.Int64Value / 1000);
100
+ return TimeSpan.FromTicks(_protoValue.Int64Value * (1000 / Duration.NanosecondsPerTick));
101
}
102
103
public byte[] GetString()
0 commit comments