Is there a way to render a "time since timestamp" in days as a field? #2192
-
Heya, Theoretically, the only data to store is the timestamp of the last check, which combined with the current time yields the delta needed. I've seen people use JS magic for such views and wanted to ask if someone knew a script to get: "Slug: X days since dd.MM.yyyy" for every line in a file, where X is dynamic and I could update the timestamps as needed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
What you need is this: https://updatenotes.blog/todotxt-recurring-tasks/ We don't support this in markor (yet). Though since we work on plain offline files a termux script could do this for you |
Beta Was this translation helpful? Give feedback.
-
With a bit of AI-help, I hacked together this snippet, only drawback is that timestamps must be supplied in generic ISO and dates might be of by one because they account for time. Didn't fix, because JS has terrible date parsing and I don't know if API like time or moment work in Markor.
|
Beta Was this translation helpful? Give feedback.
With a bit of AI-help, I hacked together this snippet, only drawback is that timestamps must be supplied in generic ISO and dates might be of by one because they account for time. Didn't fix, because JS has terrible date parsing and I don't know if API like time or moment work in Markor.