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.

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. span_text is what an extent of any kind is asked through; this is the arm of it which reads a clock.