𓃠 on Nostr: remind next monday !!!hoge ~~~3 とか叩いたら let date = new Date(); ...
remind next monday !!!hoge ~~~3
とか叩いたら
let date = new Date();
for(i=0;i<3;i++){
const reminderDate = chrono.parseDate(reminderDateText, { instant: new Date() }, { forwardDate: true });
if (reminderDate > new Date()) {
date = reminderDate;
// ADD RECORD
} else {
break;
}
}
Published at
2024-09-05 03:23:32Event JSON
{
"id": "5c38f41ab0c69a094f7c4e8d8433b3975bbd3684c9964a725ad0c9c508a782d2",
"pubkey": "b707d6be7fd9cc9e1aee83e81c3994156cfcf74ded5b09111930fdeeeb5a0c20",
"created_at": 1725506612,
"kind": 1,
"tags": [],
"content": "remind next monday !!!hoge ~~~3\nとか叩いたら\nlet date = new Date();\nfor(i=0;i\u003c3;i++){\n \n const reminderDate = chrono.parseDate(reminderDateText, { instant: new Date() }, { forwardDate: true });\n if (reminderDate \u003e new Date()) {\n date = reminderDate;\n // ADD RECORD\n } else {\n break;\n }\n}",
"sig": "10dd165d747d0bfd61b733f27768267280259b155ee7c295b03c8fb1ced29cd4e21912d1d52e7ec18b3de8e66b2baf73529d2e2456cb13e4ea7af842a9e3251f"
}