duration_text

function of dascore.utils.display source

duration_text(
    low ,
    high ,
)-> ‘Text | None’

How long an extent lasted, as a repr states it.

None where it lasted no time: human_duration says nothing of a zero, which reads as a label on a gap and as an empty pair of brackets here.

Asked wherever a repr states two instants. A time is stated as an instant, so how far apart two of them are is a fact the line does not otherwise carry; every other kind of dimension states its own magnitude already, and saying it twice is not saying more.

Only of two times. A duration is read in seconds, so a distance of 299 handed to this would come back as “5 m” – five minutes, of a span measured in metres.