added `total.span` argument to `cm_time2long`