File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,6 @@ cdef class LibrdataWriter():
344
344
dict rdict
345
345
dict rformats
346
346
dict rtypes
347
- long long timeval
348
347
bytes file_name
349
348
bytes tbl_name
350
349
rdata_writer_t * writer
@@ -368,8 +367,7 @@ cdef class LibrdataWriter():
368
367
369
368
if vtype == RDATA_TYPE_TIMESTAMP:
370
369
for k, v in vdata.items():
371
- self .timeval = v
372
- rdata_append_timestamp_value(self .writer, self .timeval)
370
+ rdata_append_timestamp_value(self .writer, v)
373
371
374
372
if vtype == RDATA_TYPE_STRING:
375
373
for k, v in vdata.items():
Original file line number Diff line number Diff line change @@ -720,10 +720,10 @@ def test_write_read_dtypes(rtype, comp):
720
720
721
721
dts = [
722
722
Timestamp .min .ceil ("S" ),
723
- Timestamp (- ( 10.0 ** 18.0 ) ).ceil ("S" ),
723
+ Timestamp ("1950-01-01" ).ceil ("S" ),
724
724
Timestamp (0 ),
725
+ Timestamp ("2000-01-01" ).floor ("S" ),
725
726
Timestamp .now ().floor ("S" ),
726
- Timestamp (10.0 ** 18.0 ).floor ("S" ),
727
727
Timestamp .max .floor ("S" ),
728
728
]
729
729
You can’t perform that action at this time.
0 commit comments