On Sunday, October 9, 2016 at 7:56:57 PM UTC+1, Risat Haque wrote:
> Hey, i have a data base filled with numbers from a recent drone flight. IT
> contains, alt, long, lat, and time.
> In python, i want to ask the user to put in a time :
> askTime = (input("Choose a time (HourMinSec):"))
>
> With this, I need it to search through the entire data base to find that
> number.
>
> ("UTC: 8:58:24 lat: 50.97 long: -114.05 Alt: 1047.40m SOG: 1.04 km/h")
>
> EX:
>
> Choose a time (HourMinSec): 8:58:24
> Data: UTC: 8:58:24 lat: 50.97 long: -114.05 Alt: 1047.40m SOG: 1.04 km/h"
>
> How can I do this?
I'd use strptime[1] to check the input then search your database, whatever that
may be, based on that.
[1] https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime
Kindest regards.
Mark Lawrence.
--
https://mail.python.org/mailman/listinfo/python-list