1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Electron, Mobile: Created alarm service and drivers

This commit is contained in:
Laurent Cozic
2017-11-27 22:50:46 +00:00
parent 748acdf03f
commit 9a40851c77
26 changed files with 367 additions and 85 deletions

View File

@@ -3,11 +3,11 @@ const moment = require('moment');
let time = {
unix() {
return Math.floor((new Date()).getTime() / 1000);
return Math.floor(Date.now() / 1000);
},
unixMs() {
return (new Date()).getTime();
return Date.now();
},
unixMsToObject(ms) {