1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 13:29:22 +00:00

Create time() function

This commit is contained in:
Pierre HUBERT 2019-11-30 10:01:58 +01:00
parent 09d744d6f7
commit b6739473a2

9
src/utils/DateUtils.ts Normal file
View File

@ -0,0 +1,9 @@
/**
* Date utilities
*
* @author Pierre HUBERT
*/
export function time() : number {
return Math.floor((new Date()).getTime()/1000);
}