Add token creation dialog
This commit is contained in:
8
matrixgw_frontend/src/utils/DateUtils.ts
Normal file
8
matrixgw_frontend/src/utils/DateUtils.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Get UNIX time
|
||||
*
|
||||
* @returns Number of seconds since Epoch
|
||||
*/
|
||||
export function time(): number {
|
||||
return Math.floor(new Date().getTime() / 1000);
|
||||
}
|
||||
Reference in New Issue
Block a user