Add Hours

This post is referring to Vahana 2 (beta version). To check the document for production, please go to vDesigner-v1.0

This function adds a value in hours to a specific time. For instance, assume you add 10 hours to the 2:10:34 time by using the ADDHOURS() function. When the ADDHOURS() function is executed, it will return 12:10:34 as the value of time after it adds 10 hours to the 2 hours, 10 minutes, and 34 seconds.

You can use the ADDHOURS() function as follows:

To use the ADDHOURS() function:

  1. Click in the smart selector to display the Search box.
  1. In the Search box, enter addhours to display the ADDHOURS function.
  1. In the list, select ADDHOURS to display it with the time, format, and hours parameters.
  1. In the ADDHOURS function, click the time parameter to display the Search box.
  2. In the Search box, enter static to display the Static function.
  1. In the list, select the Static function to display it with the value and the String parameters.
  2. In the Static function, click the value parameter, and then enter a time (for example, 2:34:33) in hh:mm:ss format.

Note:- The 2:34:33 value specifies the time with 2 hours, 34 minutes, and 33 seconds. If you do not want to enter the time manually by using the Static function, you can fetch the value of the time from an element or entity. To know more about defining the value in the entity, visit the post, Using Entity with Date and Time Functions.

  1. In the ADDHOURS function, click format, and then enter hh:mm:ss in the place of the format parameter.
  1. In the ADDHOURS function, click the hours parameter to display the Search box.
  2. In the Search box, enter static to display the Static function.
  1. In the list, select the Static function.
  1. In the Static function, click the value parameter, and then enter a numeric value (for example, 8) that you want to add to the earlier defined value of time (for example, 2:34:33) in the first parameter.

Was this article helpful?
YesNo