I am using dateutils to forecast the arrival time on a journey.
I can represent start time as a datetime object. That's nice.
I can represent the journey_time as a timedelta. That's also nice
Problem: What's unclear to me is how I shall represent the meeting time so that it applies any weekday?
Considerations: If I use a datetime object, I will have to declare the meeting time for the particular date. That means that I have to update it for every day. This is rather tedious. I'd prefer a notation that allows me to say "any {MON,TUE,WED,THU,FRI,SAT,SUN}-day" at '09:00:00'
Pseudo example
import datetime
import dateutils
# setting start time as datetime object.
start = '2015-08-19T08:00:00'
# going from home to work:
mondays = 3000 # seconds as timedelta.
arrival = start + journey_time # calculating arrival time.
# recording the first meeting...
meeting = '09:00:00' # <--------------How should I represent this value?
arrival < meeting: # <------------- The all important check.
# should return True, if I can make it.