Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeComponent: float representation (function) #32

Open
bobslee opened this issue Nov 18, 2022 · 0 comments
Open

timeComponent: float representation (function) #32

bobslee opened this issue Nov 18, 2022 · 0 comments

Comments

@bobslee
Copy link
Member

bobslee commented Nov 18, 2022

Example:

  opening_start_time = [int(part) for part in row['openingTime'].value.split(':')]
  opening_start_time_obj = datetime.time(opening_start_time[0], opening_start_time[1])
  opening_hours_start = opening_start_time_obj.hour + (opening_start_time_obj.minute / 60.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant