Oct-20-2020, 11:17 PM
yes, I have corrected the .time thank you for reply however regarding the am pm the only format is see is for am and pm with out the dots not like a.m. dot p.m.
also I have one more question say I want to search for time in a text in general there is a couple different ways the time would be displayed when using a speech recognizer for example if you say 10:00 am it will print 10 a.m. or if i say 1:07 pm it prints 1:07 p.m. the problem with searching for time with how i have it set up now is there are 4 different ways it could be searched.
example:
1 p.m.
1:07 p.m.
10 p.m.
10:07 p.m.
I'm referring to how the parameters of the re.search and how they are searching for time in text. I've tired using if statements for all of the different ways it could be written but this lead to two problems the code being over complicated and it throwing error codes do you have any idea?
also I have one more question say I want to search for time in a text in general there is a couple different ways the time would be displayed when using a speech recognizer for example if you say 10:00 am it will print 10 a.m. or if i say 1:07 pm it prints 1:07 p.m. the problem with searching for time with how i have it set up now is there are 4 different ways it could be searched.
example:
1 p.m.
1:07 p.m.
10 p.m.
10:07 p.m.
I'm referring to how the parameters of the re.search and how they are searching for time in text. I've tired using if statements for all of the different ways it could be written but this lead to two problems the code being over complicated and it throwing error codes do you have any idea?