I am trying to calculate and store an end-time (formatted as hh:mm:ss) in my database given a user input start-time (formatted as hh:mm) that I add 'x' minutes to.
What tools does Python offer to help with this?
EDIT: Sorry I hastily posted this question. Allow me to add more specifics!
I need to parse an input time given by the user. I use Flask WTForms to have the user input a start time in the format "hh:mm"
I then want to take that form data, add 'x' minutes to it, and store it in my database as a TIME field, which is formatted as "hh:mm:ss".
source https://stackoverflow.com/questions/70174736/calculating-end-time-from-user-given-start-time-and-minutes-in-python
Comments
Post a Comment