time

ts_next_month(ts: pandas._libs.tslibs.timestamps.Timestamp) pandas._libs.tslibs.timestamps.Timestamp[source]
time_of_day(ts: pandas._libs.tslibs.timestamps.Timestamp) float[source]
Parameters

ts – the timestamp

Returns

the time of day as a floating point number in [0, 24)

class TimeInterval(start: pandas._libs.tslibs.timestamps.Timestamp, end: pandas._libs.tslibs.timestamps.Timestamp)[source]

Bases: object

__init__(start: pandas._libs.tslibs.timestamps.Timestamp, end: pandas._libs.tslibs.timestamps.Timestamp)
contains(t: pandas._libs.tslibs.timestamps.Timestamp)
contains_time(t: datetime.time)
Parameters

t – a time of day

Returns

True iff the time interval contains the given time of day at least once, False otherwise

overlaps_with(other: sensai.util.time.TimeInterval) bool
intersection(other: sensai.util.time.TimeInterval) sensai.util.time.TimeInterval
time_delta() pandas._libs.tslibs.timedeltas.Timedelta
mid_timestamp() pandas._libs.tslibs.timestamps.Timestamp