How to perform date comparisons against postgres with sequelize
问题 I want to delete all records with dates before 20 minutes ago. Postgres (or Sequelize) is not satisfied with the bare javascript Date object I provide as the comparison value. I'm using sequelize 4.37 on top of a postgres 9.6 database. The column in question was declared with type: Sequelize.DATE , which research suggests is equivalent to TIMESTAMP WITH TIME ZONE : a full date and time with microsecond precision and a timezone signifier. (That is also what I see when I use the psql CLI tool