mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19:22 +00:00
Create time() function
This commit is contained in:
parent
09d744d6f7
commit
b6739473a2
9
src/utils/DateUtils.ts
Normal file
9
src/utils/DateUtils.ts
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Date utilities
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
export function time() : number {
|
||||
return Math.floor((new Date()).getTime()/1000);
|
||||
}
|
Loading…
Reference in New Issue
Block a user