Answer the question
In order to leave comments, you need to log in
How to store schedule in Postgresql?
There are records in the database, they must be available according to date criteria - either within a certain period of time, for example - from 18:00 to 19:00, or only on Mondays and Tuesdays, or within a certain period of dates - for example, on New Year's holidays.
I can't figure out how to store them.
Answer the question
In order to leave comments, you need to log in
To solve a similar problem, I took py-dateutil , it can expand a record of a set of dates (recurring events) from the iCalendar format (RFC2445), for example:
DTSTART:19970902T090000
RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question