lib/duckdb/converter.rb in duckdb-0.9.2 vs lib/duckdb/converter.rb in duckdb-0.9.2.1

- old
+ new

@@ -17,9 +17,21 @@ def _to_time(year, month, day, hour, minute, second, microsecond) Time.local(year, month, day, hour, minute, second, microsecond) end + def _to_time_from_duckdb_time(hour, minute, second, microsecond) + Time.parse( + format( + '%<hour>02d:%<minute>02d:%<second>02d.%<microsecond>06d', + hour: hour, + minute: minute, + second: second, + microsecond: microsecond + ) + ) + end + def _to_hugeint_from_vector(lower, upper) (upper << HALF_HUGEINT_BIT) + lower end def _to_decimal_from_vector(_width, scale, lower, upper)