J
J
Johnem2020-04-24 15:04:24
Python
Johnem, 2020-04-24 15:04:24

How to find out the date which will be in n days, where n is excluding weekends, after a certain date in python?

How to find out the date which will be in n days, where n is excluding weekends, after a certain date in python?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2020-04-24
@Johnem

A day off or not - it depends only on the production calendar of a certain state. Accordingly, you need to subtract one date from another, get the number of days from the delta, then get the production calendar from somewhere in a certain format, parse it, and subtract non-working days from calendar days.

V
Vladimir, 2020-04-24
@vintello

create a Calendar entity. mark working and non-working days in it. according to them and consider yourself a script
or a smart computer and you should know everything yourself?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question