AddWorkingSeconds
4 min
returns the utc date and time of the second that is the number of working seconds specified earlier than or later than the specified date and time the application uses the hop schedule to define the working seconds see setting up hours of operation docid qp9oyhxnf2bf5fnn2nex if the value of the durationinseconds parameter is negative, the function returns a datetime value that is the number of working seconds specified before the value of the hopstartdatetime parameter syntax addworkingseconds(hopidorname, durationinseconds, hopstartdatetime) enabled for for a description of the business object categories, see notes on "enabled for" docid\ u26v9fecfs6ilwa0 pvjd business object category yes/no business rules before save rules yes business rules calculation rules (after save, with or without also recalculate on load) yes business rules calculation rules (before save or always, without also recalculate on load) yes business rules calculation rules (before save or always, with recalculate on load) yes business rules editing rules yes1 business rules initialization rules yes business rules read only rules no business rules required rules yes1 business rules validation rules yes client expressions no object permissions no services yes ldap yes mobile yes quick actions (except ui quick actions) yes ui quick actions no reports yes search/dashboard without field references yes search/dashboard with field references no except when this field appears on a form or is triggered by such a field parameters parameter description hopidorname the hours of operation schedule name (for example, 24x7 or 9 to 5) that determines the working and non working schedule durationinseconds (optional) the interval in seconds if this parameter is not used, it defaults to 0, which means that it returns the very first second of the next work period (operating interval) you can use basic math operations to calculate the seconds or you can use an expression hopstartdatetime (optional) the base date and time for the function if not specified, uses the default date which is the current date and time returns value datetime value in utc time if the application has to display the return value, it implicitly converts it to text, thereby allowing the display format to change depending on your culture code see available languages and cultures docid\ lvpbgqv5z08mcuzy43ky3 for a list of the culture codes used by example $(addworkingseconds("24 x 7", 4)) if today is april 10, 2014 at 07 30 32 am, this function returns the datetime value for the time that is 4 working seconds past april 10, 2014 at 07 30 32 am in this case, it returns april 10, 2014 at 07 30 36 am, assuming that there are no exceptions defined during that time in the hop schedule
