obsidian-tracker
obsidian-tracker copied to clipboard
Support duration values larger than 24 hours
I'm tracking the amount of podcast backlog I have in Overcast to help myself trim it down over time. I've got a scraper adding the time as a Dataview field to each daily note. But the total amount is (much) larger than 24 hours (😅), and it looks like values greater than 23:59:59 aren't parsed as time values. I assume that format is intended for a time of day rather than an arbitrary duration, but I think if it were a bit more permissive in the values it accepted, it would still do what I'm looking for.
As a workaround, I've been writing the number of minutes, but I don't think there's a way to format those, so I have to see very large numbers of minutes on my chart instead of hours or days, which is harder to wrap my head around, so it's not ideal. I could write the number in the field as hours, but because the data is gathered in minutes, that leads to some awkward long decimals.
I'd also be happy writing an expression either to render the minutes as HH:mm
or to transform the minutes to hours as they're read in, if either of those seem like better implementations.
Hi, thanks for the feedback. You are right, the duration part of the code should be re-rewritten for handling these cases.