Create a function named format_meeting(meeting_title, meeting_start)
, where meeting_title
is a string and meeting_start
is a datetime
.
For the following invocation:
format_meeting("Budget review", datetime.datime(2018, 10, 5, 13, 30))
the function should return a string that contains meeting information in the following format:
Budget review - Fri, 05 Oct 2018, 01:30 PM
Use the following formatting elements:
%a
– weekday (abbreviated)
%d
– day of month
%b
– month (abbreviated)
%Y
– year
%I
– hour (12-hour clock)
%M
– minutes
%p
– AM or PM
You can use the sample_meeting_title
and sample_meeting_datetime
variables to test your function.