Skip to content

Instantly share code, notes, and snippets.

Avatar
coding.

Rafael Kisters Ventura kistters

coding.
View GitHub Profile
@kistters
kistters / splitter_time_range.py
Last active Feb 14, 2021
Time: Split time chunks, check overlap
View splitter_time_range.py
def at_time(t):
return time(hour=int(t.split(':')[0]), minute=int(t.split(':')[1]))
def r_time(r):
return at_time(r.split('~')[0]), at_time(r.split('~')[1]),
def fmt(start, end):