Skip to content

Commit 0be90f2

Browse files
committed
增加时间处理
1 parent 20ddd65 commit 0be90f2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Apache.IoTDB/DataStructure/RowRecord.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ public class RowRecord
99
{
1010
public long Timestamps { get; }
1111
public List<object> Values { get; }
12-
public List<string> Measurements { get; }
13-
12+
public List<string> Measurements { get; }
13+
14+
public RowRecord(DateTime timestamp, List<object> values, List<string> measurements)
15+
:this(new DateTimeOffset(timestamp.ToUniversalTime()).ToUnixTimeMilliseconds(), values,measurements)
16+
{
17+
}
1418
public RowRecord(long timestamps, List<object> values, List<string> measurements)
1519
{
1620
Timestamps = timestamps;

0 commit comments

Comments
 (0)