[tw5] Re: Difference between two timestamps in elapsed time?
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={{{ [subtract] > }}}> > <> > > > 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e0b62bba-e25b-4ef1-8dc3-46e12d75bd94n%40googlegroups.com.
[tw5] Re: Difference between two timestamps in elapsed time?
BTC, There are a few date range (time within thaT) calculation tools, the first that comes to mind is in Evans Formula plugin, Eric's timer tools may do it for you, I think there is another. - If its only today simple maths can be used (separate the hours and minutes) unless it goes over the 00:00 - Is can be safer to always use a full date serial number to cope with more than one day or aging items. I will let you know if I recall something else. Tones On Tuesday, 27 July 2021 at 18:12:37 UTC+10 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={{{ [subtract] > }}}> > <> > > > 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/05e91859-70e8-4224-bad2-6cb7ecaea08en%40googlegroups.com.