Skip to main content
Solved

FSM: What is the format/example of "to minutes" operator

  • November 6, 2021
  • 2 replies
  • 86 views

Forum|alt.badge.img+2

The online documentation indicates business rule operators:

to days, to hours, to minutes, to seconds

Convert to days, convert to hours, convert to minutes, convert to seconds

But there is no example as to how this is actually implemented.  to_minutes() does not work.

I am trying to calculate the duration (time difference) between two dates in a business rule.

Thanks in advance

Ben

 

Best answer by Shneor Cheshin

Hi @USYBENA 

Do you wish to build a business rule?

You can write something like this:

 

In the following Example, I am showing a pop up of time differences as configured in the BR above. This is just for demo, not really useful in real life :)

 

 

In the same way, To Hours will give you the following result

 

Cheers!

2 replies

Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • Answer
  • November 7, 2021

Hi @USYBENA 

Do you wish to build a business rule?

You can write something like this:

 

In the following Example, I am showing a pop up of time differences as configured in the BR above. This is just for demo, not really useful in real life :)

 

 

In the same way, To Hours will give you the following result

 

Cheers!


Forum|alt.badge.img+2
  • Author
  • Do Gooder
  • November 7, 2021

Thanks - you are a star.  Could you get them to add something to the documentation?