arthurhsu / lovefield-ts

Lovefield TypeScript port: successor of google/lovefield
Apache License 2.0
47 stars 3 forks source link

Compare DATE_TIME string #24

Closed GooGee closed 2 years ago

GooGee commented 2 years ago

The DATE_TIME value is actually a string in query result.

arthurhsu commented 2 years ago

I don't think DATE_TIME is a string. The proper usage is to convert them into JS Date object. Internally I believe they are serialized as epoch time (also not string).

GooGee commented 2 years ago

You are right. I find out the Dates are strings if it's imported from JSON string. Thanks for this awesome project.