is there a way to make a calculator for minutes
i want to know how many minutes a person put a customer on hold
so if the agent put the member on hold at minute 13:40 and then came back at minute 18:31 I want to know how many minutes past since the hold started, is there a way to do that in text blaze
Hello Aldo,
You can calculate the number of minutes between two times like this:
Starting time: {formdate: HH:mm; name=Time1}
Final time: {formdate: HH:mm; name=Time2}
{note: preview=no; trim=yes}
{datetime1=datetimeparse(Time1, "HH:mm")}
{datetime2=datetimeparse(Time2, "HH:mm")}
{endnote}
The difference between the two times is {=datetimediff(datetime1, datetime2, "m")} minutes.
If you can get the time values from somewhere on your webpage using the {site} command, then you don't need to specify it via the Date forms. The logic to calculate it remains thesame.