Getting epoch time

javascriptepoch
Sep 26, 2020

Javascript

export function getEpoch(): number {
  return Math.floor(new Date().getTime() / 1000.0);
}

Postgres

select (FLOOR(EXTRACT(epoch FROM NOW()))::int)

Related Articles

How to Use Lucide Icons with Vuetify

A guide on integrating Lucide icons into a Vuetify project.

Dexie upgrade function is not called

While creating a new db version, upgrade is not called