EwoutH / shipping-data

A public collection of shipping data from South Africa to The Netherlands
GNU General Public License v3.0
1 stars 5 forks source link

Convert dates from list to datetime format #17

Open EwoutH opened 1 year ago

EwoutH commented 1 year ago

Currently the routescanner dates and times are scraped in a list format, for example ['21 OCT', ' 02:57', 'UTC-03:00']. It could be useful to convert this to datetime, to make it easier processable.

Keep in mind:

thomassandbergen commented 1 year ago

Same thing for Maersk but in a different date format. Should be discussed shortly on monday with @imvs95

thomassandbergen commented 1 year ago

Maersk date is standard in ie 04 March 2023 10:00. The following line of code fixes this for ie departure time. This code has been implemented

departure_date = datetime.strptime(departure_date,"%d %b %Y %H:%M")