Cancel
Showing results for 
Search instead for 
Did you mean: 

Add Open days in a method

Creator
Creator

Hello,

 

I have to implement this use case:

 

I have a buffer with orders, an order has a wished date as attribute. (the product should only be produced when needed)

The order should automatically go to the production when some conditions are met.

I'm trying to do that in a Method.

 

I need to know the number of Working Days between two dates like the "NETWORKDAYS(start_date, end_date, [holidays])" function in Excel. 

 

Is there a way to do that with SimTalk? ideally based on a calendar object.

 

Regards

 

 

 

 

1 REPLY

Re: Add Open days in a method

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
there is a method

<shiftCalendar>.calculateWorkingDuration

the return value is time, this you need to convert into working days
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net