Hiya BTC,
It occurs to me that the format:relativedate[] operator could be extended.
It currently calculates the date relative to now and does not accept any
parameters. It could be extended to accept a parameter indicating the date
to compare to, as well as perhaps a format string. The challenge would be
getting the syntax right so it is intuitive to use.
Might be worth creating a github issue or even a PR if you feel up to it.
Regards,
Saq
On Tuesday, July 27, 2021 at 10:12:37 AM UTC+2 BurningTreeC wrote:
>
> Hi there, tiddlywikians
>
> Let's say I have two timestamps and I want to get the elapsed time from
> one timestamp to the other, is there a simple way to get this?
>
> I calculate the difference between the timestamps by
>
> <$set name="timestampDiff" value={{{ [<timestamp1>subtract<timestamp2>]
> }}}>
> <<view the elapsed time here in hh:mm:ss>>
> </$set>
>
> I would appreciate any help :)
>
> best wishes,
> Simon
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e0b62bba-e25b-4ef1-8dc3-46e12d75bd94n%40googlegroups.com.