I have the following code in Python:
start_time = (datetime.min+ timedelta(hours=9)).strftime('%I:%M %p')
This gives the value '09:00 AM' and to add 30 minutes to the above I can do:
start_time + timedelta(minutes=30)
In Ruby what would be the equivalent of
timedelta(hours=9)
?How can I create a
start_time
similar to the above Python code in Ruby?