Skip to content

Instantly share code, notes, and snippets.

View kistters's full-sized avatar
coding.

Rafael Kisters Ventura kistters

coding.
View GitHub Profile
@kistters
kistters / splitter_time_range.py
Last active February 14, 2021 06:53
Time: Split time chunks, check overlap
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):