SolarEnergy/central_frontend/src/utils/DateUtils.ts

7 lines
130 B
TypeScript
Raw Normal View History

/**
* Get current UNIX time, in seconds
*/
export function time(): number {
return Math.floor(new Date().getTime() / 1000);
}