yasa.Hypnogram.end#

property Hypnogram.end[source]#

End date/time of the hypnogram (exclusive: start of the epoch after the last one).

Returns None if start is not set. When set, end - start equals the total recording duration.

Examples

>>> from yasa import simulate_hypnogram
>>> hyp = simulate_hypnogram(tib=60, start="2022-12-15 22:30:00", seed=0)
>>> hyp.start
Timestamp('2022-12-15 22:30:00')
>>> hyp.end
Timestamp('2022-12-15 23:30:00')
>>> hyp.end - hyp.start
Timedelta('0 days 01:00:00')