Added calendar

This commit is contained in:
2018-12-04 14:53:17 +01:00
parent adab80734e
commit 5deb2662ce
10 changed files with 1577 additions and 3 deletions

View File

@@ -7,16 +7,15 @@ var locale = require('os-locale').sync();
var cal = {};
function fromIcal(string) {
console.log(string);
return new Date(
parseInt(string.substr(0 , 4), 10),
parseInt(string.substr(4 , 2), 10),
parseInt(string.substr(4 , 2), 10) - 1,
parseInt(string.substr(6 , 2), 10),
parseInt(string.substr(9, 2), 10),
parseInt(string.substr(11, 2), 10),
parseInt(string.substr(13, 2), 10)
);
}
cal.Type = {