diff --git a/src/utils/DateUtils.ts b/src/utils/DateUtils.ts new file mode 100644 index 0000000..a12e73b --- /dev/null +++ b/src/utils/DateUtils.ts @@ -0,0 +1,9 @@ +/** + * Date utilities + * + * @author Pierre HUBERT + */ + +export function time() : number { + return Math.floor((new Date()).getTime()/1000); +} \ No newline at end of file