Skip to content

Instantly share code, notes, and snippets.

@KameronKales
Created January 20, 2017 20:44
Show Gist options
  • Save KameronKales/5a9bed7ac0c19672d469c446b7a8a813 to your computer and use it in GitHub Desktop.
Save KameronKales/5a9bed7ac0c19672d469c446b7a8a813 to your computer and use it in GitHub Desktop.
final formatting of datetime needed for alexa skill
from datetime import datetime as dt
begin_time_of_room = str(hq_date) + ' ' + '-' + ' ' + str(current_hour) + ":" + str(time) + ' ' + str(period)
end_time_of_room = str(hq_date) + ' ' + '-' + ' ' + str(end_hour) + ":" + str(time) + ' ' + str(period)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment